summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-23 22:23:13 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-23 22:23:13 (EDT)
commit9db89ede8f76b1d5e0e7b9ef908c318faf86327a (patch)
treeece50aa2d0c38814cfae260f294dc2d41ca90f4c
parent150083eea622e2ea31a3202426c0df9b4dfd16f3 (diff)
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.
-rw-r--r--src/control.sh6
1 files changed, 0 insertions, 6 deletions
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
}