From: Johannes Berg Date: Tue, 28 Jan 2020 16:38:44 +0000 (+0100) Subject: save: remove unused eatslash() function X-Git-Tag: 0.31~175 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=cb3fbc26db988ac381d08b0d198701b4a6cadd53 save: remove unused eatslash() function Code coverage reporting pointed this out, and indeed it's unused. Remove it. Signed-off-by: Johannes Berg Reviewed-by: Rob Browning --- diff --git a/cmd/save-cmd.py b/cmd/save-cmd.py index 5140ac0..28019ba 100755 --- a/cmd/save-cmd.py +++ b/cmd/save-cmd.py @@ -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