From 98d7f785e9cdd1ac2e17266e2dbdbe1419baf8f2 Mon Sep 17 00:00:00 2001 From: karajan1001 Date: Mon, 27 Dec 2021 17:27:14 +0800 Subject: [PATCH] exp show: remove a useless function The function `_raise_error_if_all_disabled` is copyed wrongly to this place during sub command refactoring. It used to be used in `exp gc`, can be deleted from this function. --- dvc/command/experiments/show.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dvc/command/experiments/show.py b/dvc/command/experiments/show.py index 3ed78b5a4..d271852ae 100644 --- a/dvc/command/experiments/show.py +++ b/dvc/command/experiments/show.py @@ -517,14 +517,6 @@ def _format_json(item): return encode_exception(item) -def _raise_error_if_all_disabled(**kwargs): - if not any(kwargs.values()): - raise InvalidArgumentError( - "Either of `-w|--workspace`, `-a|--all-branches`, `-T|--all-tags` " - "or `--all-commits` needs to be set." - ) - - class CmdExperimentsShow(CmdBase): def run(self): try: