From: Zbigniew Jędrzejewski-Szmek Date: Tue, 16 Nov 2021 11:24:27 +0000 (+0100) Subject: zsh: drop unused code X-Git-Tag: v250-rc1~235^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a87425c61d4e2e51c0abce20755462166c0479c;p=thirdparty%2Fsystemd.git zsh: drop unused code The verbs were commented, so the completion functions wouldn't be invoked anyway. --- diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze index 258db0340c6..468fd0e5829 100644 --- a/shell-completion/zsh/_systemd-analyze +++ b/shell-completion/zsh/_systemd-analyze @@ -1,32 +1,11 @@ #compdef systemd-analyze # SPDX-License-Identifier: LGPL-2.1-or-later -(( $+functions[_systemd-analyze_log-level] )) || - _systemd-analyze_log-level() { - local -a _levels - _levels=(debug info notice warning err crit alert emerg) - _describe -t level 'logging level' _levels || compadd "$@" - } - -(( $+functions[_systemd-analyze_log-target] )) || - _systemd-analyze_log-target() { - local -a _targets - _targets=(console journal kmsg journal-or-kmsg null) - _describe -t target 'logging target' _targets || compadd "$@" - } - (( $+functions[_systemd-analyze_verify] )) || _systemd-analyze_verify() { _sd_unit_files } -(( $+functions[_systemd-analyze_service-watchdogs] )) || - _systemd-analyze_service-watchdogs() { - local -a _states - _states=(on off) - _describe -t state 'state' _states || compadd "$@" - } - (( $+functions[_systemd-analyze_cat-config] )) || _systemd-analyze_cat-config() { _files -W '(/run/systemd/ /etc/systemd/ /usr/lib/systemd/)' -P 'systemd/' @@ -75,9 +54,7 @@ 'timestamp:Parse a systemd syntax timestamp' 'timespan:Parse a systemd syntax timespan' 'security:Analyze security settings of a service' - # 'log-level:Get/set systemd log threshold' - # 'log-target:Get/set systemd log target' - # 'service-watchdogs:Get/set service watchdog status' + # log-level, log-target, service-watchdogs have been deprecated ) if (( CURRENT == 1 )); then