mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
patchtest/patch.py: remove cruft
Remove some minor chunks of code in patch.py that serve no purpose. (From OE-Core rev: e2146fe0cb8b3c22d2df1cda5a36f458b7313280) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e6c6abf2e0
commit
4954be685f
|
@ -14,22 +14,12 @@ import utils
|
|||
logger = logging.getLogger('patchtest')
|
||||
|
||||
class PatchTestPatch(object):
|
||||
MERGE_STATUS_INVALID = 'INVALID'
|
||||
MERGE_STATUS_NOT_MERGED = 'NOTMERGED'
|
||||
MERGE_STATUS_MERGED_SUCCESSFULL = 'PASS'
|
||||
MERGE_STATUS_MERGED_FAIL = 'FAIL'
|
||||
MERGE_STATUS = (MERGE_STATUS_INVALID,
|
||||
MERGE_STATUS_NOT_MERGED,
|
||||
MERGE_STATUS_MERGED_SUCCESSFULL,
|
||||
MERGE_STATUS_MERGED_FAIL)
|
||||
|
||||
def __init__(self, path, forcereload=False):
|
||||
self._path = path
|
||||
self._forcereload = forcereload
|
||||
|
||||
self._contents = None
|
||||
self._branch = None
|
||||
self._merge_status = PatchTestPatch.MERGE_STATUS_NOT_MERGED
|
||||
|
||||
@property
|
||||
def contents(self):
|
||||
|
@ -51,12 +41,3 @@ class PatchTestPatch(object):
|
|||
if not self._branch:
|
||||
self._branch = utils.get_branch(self._path)
|
||||
return self._branch
|
||||
|
||||
def setmergestatus(self, status):
|
||||
self._merge_status = status
|
||||
|
||||
def getmergestatus(self):
|
||||
return self._merge_status
|
||||
|
||||
merge_status = property(getmergestatus, setmergestatus)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user