From 4062f1a2233a2ed2054c8134b8397c10f6e49bcf Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 1 Apr 2017 23:02:41 +0200 Subject: Remove unused get_temp_path Signed-off-by: Florian Pritz --- lib/App/BorgRestore.pm | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib') diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm index 1a6c9f3..3e76c0d 100644 --- a/lib/App/BorgRestore.pm +++ b/lib/App/BorgRestore.pm @@ -213,17 +213,6 @@ sub restore { $self->{borg}->restore($components_to_strip, $archive_name, $path); } -sub get_temp_path { - my $self = shift; - my $item = shift; - - state $tempdir_obj = File::Temp->newdir(); - - my $tempdir = $tempdir_obj->dirname; - - return $tempdir."/".$item; -} - sub add_path_to_hash { my $self = shift; my $hash = shift; -- cgit v1.2.3-24-g4f1b