From 8914b1f86db3903e507b26979f6f137907ea3398 Mon Sep 17 00:00:00 2001 From: Jason Chang Date: Fri, 26 May 2023 12:44:50 -0700 Subject: gitc: drop support Bug: b/282775958 Change-Id: Ib6383d6fd82a017d0a6670d6558a905d41be321f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/375314 Reviewed-by: Mike Frysinger Tested-by: Jason Chang Commit-Queue: Jason Chang --- subcmds/help.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'subcmds/help.py') diff --git a/subcmds/help.py b/subcmds/help.py index 593bf676..0d7b664e 100644 --- a/subcmds/help.py +++ b/subcmds/help.py @@ -21,10 +21,7 @@ from color import Coloring from command import ( PagedCommand, MirrorSafeCommand, - GitcAvailableCommand, - GitcClientCommand, ) -import gitc_utils from wrapper import Wrapper from error import RepoExitError @@ -79,26 +76,9 @@ Displays detailed usage information about a command. def PrintCommonCommandsBody(self): print("The most commonly used repo commands are:") - def gitc_supported(cmd): - if not isinstance(cmd, GitcAvailableCommand) and not isinstance( - cmd, GitcClientCommand - ): - return True - if self.client.isGitcClient: - return True - if isinstance(cmd, GitcClientCommand): - return False - if gitc_utils.get_gitc_manifest_dir(): - return True - return False - commandNames = list( sorted( - [ - name - for name, command in all_commands.items() - if command.COMMON and gitc_supported(command) - ] + name for name, command in all_commands.items() if command.COMMON ) ) self._PrintCommands(commandNames) -- cgit v1.2.3-54-g00ecf