lib: Remove unused function in pager lib

This commit is contained in:
Ethan P 2020-04-30 20:37:17 -07:00
parent e4d790ca91
commit 309a2169ba
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -47,24 +47,6 @@ pager_exec() {
fi
}
# Displays the output of a command or function inside the pager (if it exists).
#
# Example:
# bat | pager_display
pager_display() {
if [[ -n "$SCRIPT_PAGER_CMD" ]]; then
if [[ -n "$SCRIPT_PAGER_CMD" ]]; then
"${SCRIPT_PAGER_CMD[@]}" "${SCRIPT_PAGER_ARGS[@]}"
return $?
else
"${SCRIPT_PAGER_CMD[@]}"
return $?
fi
else
cat
return $?
fi
}
# -----------------------------------------------------------------------------