diff mbox series

[1/2] patchtest/patch.py: remove cruft

Message ID 20240730211946.93909-1-tgamblin@baylibre.com
State Accepted, archived
Commit e2146fe0cb8b3c22d2df1cda5a36f458b7313280
Headers show
Series [1/2] patchtest/patch.py: remove cruft | expand

Commit Message

Trevor Gamblin July 30, 2024, 9:19 p.m. UTC
Remove some minor chunks of code in patch.py that serve no purpose.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
 meta/lib/patchtest/patch.py | 19 -------------------
 1 file changed, 19 deletions(-)
diff mbox series

Patch

diff --git a/meta/lib/patchtest/patch.py b/meta/lib/patchtest/patch.py
index baf6283873..90faf3eeb4 100644
--- a/meta/lib/patchtest/patch.py
+++ b/meta/lib/patchtest/patch.py
@@ -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)
-