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]
This commit is contained in:
@@ -325,22 +325,6 @@ class RedFamParser( RedFam ):
|
|||||||
self._beginning, self._ending,
|
self._beginning, self._ending,
|
||||||
self._status )
|
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
|
@classmethod
|
||||||
def is_section_redfam_cb( cls, heading ):
|
def is_section_redfam_cb( cls, heading ):
|
||||||
"""
|
"""
|
||||||
@@ -438,48 +422,6 @@ class RedFamParser( RedFam ):
|
|||||||
|
|
||||||
return (beginning, ending)
|
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 ):
|
class RedFamWorker( RedFam ):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user