From 78eda105622c2692e2dd0e1c825119d2b14a2e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?GOLDERWEB=20=E2=80=93=20Jonathan=20Golder?= Date: Thu, 25 Aug 2016 22:41:13 +0200 Subject: [PATCH] Remove deprecated methods Deprecated functions which are not used anymore can be removed to make code more clearer and improve maintainability Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=80 FS#80] --- lib/redfam.py | 58 --------------------------------------------------- 1 file changed, 58 deletions(-) diff --git a/lib/redfam.py b/lib/redfam.py index a0f566f..30dd22d 100644 --- a/lib/redfam.py +++ b/lib/redfam.py @@ -325,22 +325,6 @@ class RedFamParser( RedFam ): self._beginning, self._ending, self._status ) - @classmethod - @deprecated - def is_sectionheading( cls, line ): - """ - Checks wether given line is a red_fam section heading - - @param str line String to check - - @returns bool Returns True if it is a section heading - """ - - if cls.__sectionhead_pat.search( str(line) ): - return True - else: - return False - @classmethod def is_section_redfam_cb( cls, heading ): """ @@ -438,48 +422,6 @@ class RedFamParser( RedFam ): return (beginning, ending) - @classmethod - @deprecated( 'extract_dates' ) - def is_beginning( cls, line ): - """ - Returns the first timestamp found in line, otherwise None - - @param str line String to search in - - @returns str Timestamp, otherwise None - """ - - return cls.extract_dates( line )[0] - - @classmethod - @deprecated( 'extract_dates' ) - def is_ending( cls, line, isarchive=False ): - """ - Returns the timestamp of done notice ( if one ), otherwise None - - @param line String to search in - @type line str - @param isarchive If true skip searching done notice (on archivepages) - @type isarchive bool - - @returns Timestamp, otherwise None - @returntype str - """ - - return cls.extract_dates( line )[1] - - @classmethod - @deprecated( 'extract_dates' ) - def is_ending2( cls, line ): - """ - Returns the last timestamp found in line, otherwise None - @param str line String to search in - - @returns str Timestamp, otherwise None - """ - - return cls.extract_dates( line, True )[1] - class RedFamWorker( RedFam ): """