summaryrefslogtreecommitdiff
path: root/zuul/driver/github
diff options
context:
space:
mode:
authorSimon Westphahl <simon.westphahl@bmw.de>2021-09-17 12:55:06 +0200
committerJames E. Blair <jim@acmegating.com>2021-09-17 15:52:54 -0700
commitdeb0b692600ea9c3f061055e6af3cffd26e05d70 (patch)
tree10c7aacfe245a884a6fffa5a5cec975f1ed3401c /zuul/driver/github
parent5113fbceb063100d94b2453463c787afe030f869 (diff)
downloadzuul-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/github')
-rw-r--r--zuul/driver/github/githubconnection.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/zuul/driver/github/githubconnection.py b/zuul/driver/github/githubconnection.py
index 6c0b3959e..2ed8ef926 100644
--- a/zuul/driver/github/githubconnection.py
+++ b/zuul/driver/github/githubconnection.py
@@ -103,12 +103,6 @@ class GithubChangeCache(AbstractChangeCache):
"PullRequest": PullRequest,
}
- def _getChangeClass(self, change_type):
- return self.CHANGE_TYPE_MAP[change_type]
-
- def _getChangeType(self, change):
- return type(change).__name__
-
class GithubRequestLogger: