]> git.notmuchmail.org Git - notmuch/commitdiff
test: remove unused filter functions
authorJani Nikula <jani@nikula.org>
Sun, 26 Feb 2017 13:42:54 +0000 (15:42 +0200)
committerDavid Bremner <david@tethera.net>
Thu, 9 Mar 2017 12:54:53 +0000 (08:54 -0400)
They've been unused since their introduction in commit 0083854b1204
("Copy test framework from Git").

test/test-lib.sh

index e4729a61cd8ec634847eabca8fa37609cf7b7bde..c394e66f2645e2d692c3ffc182ca07550ee917d1 100644 (file)
@@ -267,33 +267,6 @@ export GNUPGHOME="${TEST_TMPDIR}/gnupg"
 trap 'trap_exit' EXIT
 trap 'trap_signal' HUP INT TERM
 
 trap 'trap_exit' EXIT
 trap 'trap_signal' HUP INT TERM
 
-test_decode_color () {
-       sed     -e 's/.\[1m/<WHITE>/g' \
-               -e 's/.\[31m/<RED>/g' \
-               -e 's/.\[32m/<GREEN>/g' \
-               -e 's/.\[33m/<YELLOW>/g' \
-               -e 's/.\[34m/<BLUE>/g' \
-               -e 's/.\[35m/<MAGENTA>/g' \
-               -e 's/.\[36m/<CYAN>/g' \
-               -e 's/.\[m/<RESET>/g'
-}
-
-q_to_nul () {
-       perl -pe 'y/Q/\000/'
-}
-
-q_to_cr () {
-       tr Q '\015'
-}
-
-append_cr () {
-       sed -e 's/$/Q/' | tr Q '\015'
-}
-
-remove_cr () {
-       tr '\015' Q | sed -e 's/Q$//'
-}
-
 # Generate a new message in the mail directory, with a unique message
 # ID and subject. The message is not added to the index.
 #
 # Generate a new message in the mail directory, with a unique message
 # ID and subject. The message is not added to the index.
 #