summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-03-27 21:34:44 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-03-27 21:34:51 -0400
commit6c592ff23dab48a728e50301a6b19d69a90d67d9 (patch)
tree592ccbaea096fcb3786c4004a498bfabecf28691
parent086df91f23d1f3486725353ffe1630da8f9c8f5c (diff)
librelib: Remove dead code
-rwxr-xr-xsrc/lib/librelib13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/librelib b/src/lib/librelib
index db84e2a..004c8b1 100755
--- a/src/lib/librelib
+++ b/src/lib/librelib
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Copyright (C) 2013-2014, 2017 Luke Shumaker <lukeshu@parabola.nu>
+# Copyright (C) 2013-2014, 2017-2018 Luke Shumaker <lukeshu@parabola.nu>
#
# License: GNU GPLv2+
#
@@ -33,17 +33,6 @@ print() {
printf -- "$mesg\n" "$@"
}
-whitespace_collapse() {
- tr '\n' '\r' | sed -r \
- -e 's/\r/ /g' -e 's/\t/ /g' \
- -e 's/(^|[^.!? ]) +/\1 /g' -e 's/([.!?]) +/\1 /g'
-}
-
-prose() {
- local mesg; mesg="$(_ "$(whitespace_collapse <<<"$1")")"; shift
- printf -- "$mesg" "$@" | fmt -u
-}
-
cmd=${0##*/}
usage() {
. libremessages # Don't change this to use librelib