Commit 415cf53d authored by Nodir Turakulov's avatar Nodir Turakulov Committed by Commit Bot

gclient module: remove revert function

Nothing uses it

R=iannucci@chromium.org
BUG=

Change-Id: I33932335e019d61f8e174e12c2b647ebfe3d6903
Reviewed-on: https://chromium-review.googlesource.com/412265Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
Commit-Queue: Nodir Turakulov <nodir@chromium.org>
parent cb1beaa7
......@@ -245,21 +245,6 @@ class GclientApi(recipe_api.RecipeApi):
return sync_step
def revert(self, **kwargs): # pragma: no cover
"""Return a gclient_safe_revert step."""
# Not directly calling gclient, so don't use self().
alias = self.spec_alias
prefix = '%sgclient ' % (('[spec: %s] ' % alias) if alias else '')
gclient_path = self.package_repo_resource(
'gclient.bat' if self.m.platform.is_win else 'gclient')
return self.m.python(prefix + 'revert',
self.m.path['build'].join('scripts', 'slave', 'gclient_safe_revert.py'),
['.', gclient_path],
infra_step=True,
**kwargs
)
def runhooks(self, args=None, name='runhooks', **kwargs):
args = args or []
assert isinstance(args, (list, tuple))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment