From d024f67fc56275433a30c220aca6da0f49346c87 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 22 Jul 2017 14:52:24 -0400 Subject: src/*.sh, src/cmd/*.sh: Drop use() calls --- (limited to 'src') diff --git a/src/cmd.sh b/src/cmd.sh index fde5f60..9b17693 100644 --- a/src/cmd.sh +++ b/src/cmd.sh @@ -20,9 +20,6 @@ [ "x${_CMD_SM+set}" = 'xset' ] && return 0 _CMD_SM=1 -use output -use locale - cmds= load_cmds() diff --git a/src/cmd/copy-suite.sh b/src/cmd/copy-suite.sh index 987fb45..d17a9d4 100644 --- a/src/cmd/copy-suite.sh +++ b/src/cmd/copy-suite.sh @@ -17,8 +17,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -use suite - cmd_copy_suite_main() { local src_suite="${1}" diff --git a/src/cmd/include.sh b/src/cmd/include.sh index 4d279af..aa8fd30 100644 --- a/src/cmd/include.sh +++ b/src/cmd/include.sh @@ -17,8 +17,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -use include - cmd_include_main() { local changes= diff --git a/src/cmd/process-incoming.sh b/src/cmd/process-incoming.sh index 1eb52ae..6f07547 100644 --- a/src/cmd/process-incoming.sh +++ b/src/cmd/process-incoming.sh @@ -17,10 +17,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -use locale -use output -use include - cmd_process_incoming_main() { local changes= diff --git a/src/cmd/remove-suite.sh b/src/cmd/remove-suite.sh index 5fc24ae..394b7fd 100644 --- a/src/cmd/remove-suite.sh +++ b/src/cmd/remove-suite.sh @@ -17,8 +17,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -use suite - cmd_remove_suite_main() { local suite="${1}" diff --git a/src/cmd/remove.sh b/src/cmd/remove.sh index 30dffa6..26660b6 100644 --- a/src/cmd/remove.sh +++ b/src/cmd/remove.sh @@ -17,8 +17,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -use remove - cmd_remove_main() { local suite="${1}" diff --git a/src/control.sh b/src/control.sh index 6907b3d..a49ea98 100644 --- a/src/control.sh +++ b/src/control.sh @@ -20,9 +20,6 @@ [ "x${_CONTROL_SM+set}" = 'xset' ] && return 0 _CONTROL_SM=1 -use output -use locale - control_file= control_line_nr= diff --git a/src/db.sh b/src/db.sh index e2f8fb7..cd91840 100644 --- a/src/db.sh +++ b/src/db.sh @@ -20,8 +20,6 @@ [ "x${_DB_SM+set}" = 'xset' ] && return 0 _DB_SM=1 -use dir - # # Functions for the suites indices # diff --git a/src/garbage.sh b/src/garbage.sh index a6f1a3d..1af64bd 100644 --- a/src/garbage.sh +++ b/src/garbage.sh @@ -20,10 +20,6 @@ [ "x${_GARBAGE_SM+set}" = 'xset' ] && return 0 _GARBAGE_SM=1 -use locale -use output -use dir - collect_garbage() { local cur_time= diff --git a/src/include.sh b/src/include.sh index 42ccf24..14476ee 100644 --- a/src/include.sh +++ b/src/include.sh @@ -20,11 +20,6 @@ [ "x${_INCLUDE_SM+set}" = 'xset' ] && return 0 _INCLUDE_SM=1 -use control -use db -use locale -use output - _INCLUDE_CHANGES_FIELDS='Format Source Binary Version Architecture Platform Distribution Maintainer Changed-By Date Description Changes Files' diff --git a/src/index.sh b/src/index.sh index 8749897..13d206b 100644 --- a/src/index.sh +++ b/src/index.sh @@ -20,10 +20,6 @@ [ "x${_INDEX_SM+set}" = 'xset' ] && return 0 _INDEX_SM=1 -use locale -use output -use dir - feed_add_package() { local chan="${1}" diff --git a/src/main.sh b/src/main.sh index ed6be4f..8ee09c4 100644 --- a/src/main.sh +++ b/src/main.sh @@ -76,11 +76,6 @@ use() fi } -use locale -use cmd -use index -use garbage - main() { local cmd= diff --git a/src/remove.sh b/src/remove.sh index a3a06dd..1cd6431 100644 --- a/src/remove.sh +++ b/src/remove.sh @@ -20,10 +20,6 @@ [ "x${_REMOVE_SM+set}" = 'xset' ] && return 0 _REMOVE_SM=1 -use locale -use output -use db - remove_source_from_suite() { local chan="${1}" diff --git a/src/suite.sh b/src/suite.sh index 4de39ef..5d00914 100644 --- a/src/suite.sh +++ b/src/suite.sh @@ -20,12 +20,6 @@ [ "x${_SUITE_SM+set}" = 'xset' ] && return 0 _SUITE_SM=1 -use db -use dir -use remove -use locale -use output - copy_suite() { local src_chan="${1}" -- cgit v0.9.1