]> git.ipfire.org Git - pakfire.git/commitdiff
util: Drop more unused functions
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Apr 2021 13:16:41 +0000 (13:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Apr 2021 13:16:41 +0000 (13:16 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/util.py

index 96ce10f34690d12d4b175782c18162ae9412648c..0b49f5066424bc1a5f78518b4fb4a52a61c83967 100644 (file)
@@ -41,27 +41,6 @@ def cli_is_interactive():
 
        return False
 
-def is_enabled(s):
-       return s in ("true", "yes", "1")
-
-def ask_user(question):
-       """
-               Ask the user the question, he or she can answer with yes or no.
-
-               This function returns True for "yes" and False for "no".
-
-               If the software is running in a non-inteactive shell, no question
-               is asked at all and the answer is always "yes".
-       """
-       if not cli_is_interactive():
-               return True
-
-       print(_("%s [y/N]") % question, end=' ')
-       ret = input()
-       print() # Just an empty line.
-
-       return ret in ("y", "Y", "z", "Z", "j", "J")
-
 def random_string(length=20):
        s = ""