diff options
author | Simon Westphahl <simon.westphahl@bmw.de> | 2021-09-17 12:55:06 +0200 |
---|---|---|
committer | James E. Blair <jim@acmegating.com> | 2021-09-17 15:52:54 -0700 |
commit | deb0b692600ea9c3f061055e6af3cffd26e05d70 (patch) | |
tree | 10c7aacfe245a884a6fffa5a5cec975f1ed3401c /zuul/driver/gitlab | |
parent | 5113fbceb063100d94b2453463c787afe030f869 (diff) | |
download | zuul-deb0b692600ea9c3f061055e6af3cffd26e05d70.tar.gz |
Simplify Zookeeper change cache API
Move common methods to AbstractChangeCache so that concrete
implementations only need to defined the mapping from change type as
string to the change class.
Change-Id: I78c1bdfad1c0986aa6aef387424ea35b6c2aa71d
Diffstat (limited to 'zuul/driver/gitlab')
-rw-r--r-- | zuul/driver/gitlab/gitlabconnection.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/zuul/driver/gitlab/gitlabconnection.py b/zuul/driver/gitlab/gitlabconnection.py index 8e69140d6..2cd0c807d 100644 --- a/zuul/driver/gitlab/gitlabconnection.py +++ b/zuul/driver/gitlab/gitlabconnection.py @@ -51,12 +51,6 @@ class GitlabChangeCache(AbstractChangeCache): "MergeRequest": MergeRequest, } - def _getChangeClass(self, change_type): - return self.CHANGE_TYPE_MAP[change_type] - - def _getChangeType(self, change): - return type(change).__name__ - class GitlabEventConnector(threading.Thread): """Move events from Gitlab into the scheduler""" |