]> arthur.barton.de Git - bup.git/commitdiff
save: remove unused eatslash() function
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jan 2020 16:38:44 +0000 (17:38 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 18:14:35 +0000 (12:14 -0600)
Code coverage reporting pointed this out, and indeed it's unused.
Remove it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py

index 5140ac027ecff4cef3b93ff93cd7ab05a6295c00..28019ba7f18716637c467c6d9dd9cdfab4aa15a1 100755 (executable)
@@ -118,12 +118,6 @@ else:
 handle_ctrl_c()
 
 
-def eatslash(dir):
-    if dir.endswith(b'/'):
-        return dir[:-1]
-    else:
-        return dir
-
 # Metadata is stored in a file named .bupm in each directory.  The
 # first metadata entry will be the metadata for the current directory.
 # The remaining entries will be for each of the other directory