]> arthur.barton.de Git - bup.git/commitdiff
options: remove unused _atoi()
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 29 Jan 2020 20:35:57 +0000 (21:35 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 18:15:09 +0000 (12:15 -0600)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/options.py

index 37c76aa0f59ad742ade60833382ca4d8d0f131e8..a7fd284b719cbf51a61ccc7f706ccbe61fa6495c 100644 (file)
@@ -129,13 +129,6 @@ def _intify(v):
     return v
 
 
-def _atoi(v):
-    try:
-        return int(v or 0)
-    except ValueError:
-        return 0
-
-
 if not fcntl and termios:
     def _tty_width():
         return 70