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 ): """