From 9db89ede8f76b1d5e0e7b9ef908c318faf86327a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 23 Apr 2019 22:23:13 -0400 Subject: parse_control(): Drop field callback dead code The callback function is already called in the paragraph case in the loop, which also resets the field name to the null string, making this final callback code unreachable. --- (limited to 'src/control.sh') diff --git a/src/control.sh b/src/control.sh index e73c842..d06cdbd 100644 --- a/src/control.sh +++ b/src/control.sh @@ -154,11 +154,5 @@ parse_control() # The second blank line above is needed because the command substitution # removes any trailing newlines. - if [ -n "${name}" ]; then - if ! "${field_cb}" "${name}" "${value}"; then - return 0 - fi - fi - return 0 } -- cgit v0.9.1