summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-16 12:24:27 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-16 13:00:31 +0100
commit5a87425c61d4e2e51c0abce20755462166c0479c (patch)
treef361b622597bf4ddae3651e02301ed0283f7b5a9
parent22375a271ed489704325e9a12fd054185fb72702 (diff)
downloadsystemd-5a87425c61d4e2e51c0abce20755462166c0479c.tar.gz
zsh: drop unused code
The verbs were commented, so the completion functions wouldn't be invoked anyway.
-rw-r--r--shell-completion/zsh/_systemd-analyze25
1 files changed, 1 insertions, 24 deletions
diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze
index 258db0340c..468fd0e582 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