test_smbclient_tarmode.pl: remove unused functions
authorAurélien Aptel <aurelien.aptel@gmail.com>
Fri, 28 Jun 2013 01:35:21 +0000 (03:35 +0200)
committerJim McDonough <jmcd@samba.org>
Tue, 5 Nov 2013 13:42:40 +0000 (08:42 -0500)
Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jim McDonough <jmcd@samba.org>
source3/script/tests/test_smbclient_tarmode.pl

index fe6e7a2f4ec5c0ffe7c08b1147b8ccc179c3104d..55010010590588bf7363c1c070d4ae16d3dd4a8a 100755 (executable)
@@ -363,33 +363,6 @@ sub smb_tar {
     smb_client((length($cmd) ? ('-c', $cmd) : ()), @rest);
 }
 
-
-# print find(1)-like output of the share
-# ex: dump_tree(smb_tree())
-sub dump_tree {
-    my ($t, $path) = @_;
-    $path = '' if(!defined $path);
-
-    for my $f (@{$t->{dir}}) {
-        if($f->{attr}{D}) {
-            # print final slash on dir
-            print $path.'/'.$f->{fn},"/\n";
-            dump_tree($f, $path.'/'.$f->{fn});
-        } else {
-            print $path.'/'.$f->{fn},"\n";
-        }
-    }
-}
-
-sub get_file {
-    my ($fullpath, @flags) = @_;
-    my ($file, $dir) = fileparse($fullpath);
-
-    my @files = smb_ls($dir);
-    my @res = grep {$_->{fn} eq $file} @files;
-    return @res ? $res[0] : undef;
-}
-
 sub random {
     my ($min, $max) = @_;
     ($min, $max) = ($max, $min) if($min > $max);