mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 1494091: [mozharness] Remove unused query_version; r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D7331 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
f777c1d551
commit
abfc8a57a7
@ -123,7 +123,6 @@ class DesktopSingleLocale(LocalesMixin, AutomationMixin,
|
||||
self.bootstrap_env = None
|
||||
self.upload_env = None
|
||||
self.revision = None
|
||||
self.version = None
|
||||
self.upload_urls = {}
|
||||
self.pushdate = None
|
||||
# upload_files is a dictionary of files to upload, keyed by locale.
|
||||
@ -323,14 +322,6 @@ class DesktopSingleLocale(LocalesMixin, AutomationMixin,
|
||||
self.info('echo-variable-%s: %s' % (variable, output))
|
||||
return output
|
||||
|
||||
def query_version(self):
|
||||
"""Gets the version from the objdir.
|
||||
Only valid after setup is run."""
|
||||
if self.version:
|
||||
return self.version
|
||||
self.version = self._query_make_variable("MOZ_APP_VERSION")
|
||||
return self.version
|
||||
|
||||
def _map(self, func, items):
|
||||
"""runs func for any item in items, calls the add_failure() for each
|
||||
error. It assumes that function returns 0 when successful.
|
||||
|
@ -93,7 +93,6 @@ class MobileSingleLocale(LocalesMixin, TooltoolMixin, AutomationMixin,
|
||||
self.repack_env = None
|
||||
self.revision = None
|
||||
self.upload_env = None
|
||||
self.version = None
|
||||
self.upload_urls = {}
|
||||
|
||||
# Helper methods {{{2
|
||||
@ -178,15 +177,6 @@ class MobileSingleLocale(LocalesMixin, TooltoolMixin, AutomationMixin,
|
||||
)
|
||||
return self.base_package_name
|
||||
|
||||
def query_version(self):
|
||||
"""Get the package name from the objdir.
|
||||
Only valid after setup is run.
|
||||
"""
|
||||
if self.version:
|
||||
return self.version
|
||||
self.version = self._query_make_variable("MOZ_APP_VERSION")
|
||||
return self.version
|
||||
|
||||
def query_upload_url(self, locale):
|
||||
if locale in self.upload_urls:
|
||||
return self.upload_urls[locale]
|
||||
|
Loading…
x
Reference in New Issue
Block a user