mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-11-28 23:24:49 +08:00
Remove unnecessary getters and setters in the SCM class
This commit is contained in:
@@ -310,42 +310,6 @@ class SCM(object):
|
||||
else:
|
||||
raise RuntimeError("is_full_commit_hash: Unhandled SCM scheme.")
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
"""The original scmurl."""
|
||||
return self._url
|
||||
|
||||
@url.setter
|
||||
def url(self, s):
|
||||
self._url = str(s)
|
||||
|
||||
@property
|
||||
def scheme(self):
|
||||
"""The SCM scheme."""
|
||||
return self._scheme
|
||||
|
||||
@scheme.setter
|
||||
def scheme(self, s):
|
||||
self._scheme = str(s)
|
||||
|
||||
@property
|
||||
def sourcedir(self):
|
||||
"""The SCM source directory."""
|
||||
return self._sourcedir
|
||||
|
||||
@sourcedir.setter
|
||||
def sourcedir(self, s):
|
||||
self._sourcedir = str(s)
|
||||
|
||||
@property
|
||||
def repository(self):
|
||||
"""The repository part of the scmurl."""
|
||||
return self._repository
|
||||
|
||||
@repository.setter
|
||||
def repository(self, s):
|
||||
self._repository = str(s)
|
||||
|
||||
@property
|
||||
def commit(self):
|
||||
"""The commit ID, for example the git hash, or None."""
|
||||
@@ -357,12 +321,3 @@ class SCM(object):
|
||||
@commit.setter
|
||||
def commit(self, s):
|
||||
self._commit = str(s) if s else None
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""The module name."""
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
def name(self, s):
|
||||
self._name = str(s)
|
||||
|
||||
Reference in New Issue
Block a user