From 88e16efbd54907a0ad01195208f0f3b88d1f9959 Mon Sep 17 00:00:00 2001 From: MichaelDaum Date: Tue, 17 Jan 2023 12:14:37 +0100 Subject: [PATCH] Item13883: remove unused code --- core/lib/Foswiki/Func.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/lib/Foswiki/Func.pm b/core/lib/Foswiki/Func.pm index fc85954bd..73c4735d6 100644 --- a/core/lib/Foswiki/Func.pm +++ b/core/lib/Foswiki/Func.pm @@ -1744,7 +1744,7 @@ sub getAttachmentList { ( $web, $topic ) = _validateWTA( $web, $topic ); my $topicObject = Foswiki::Meta->new( $Foswiki::Plugins::SESSION, $web, $topic ); - my $it = $topicObject->eachAttachment(); + my $it = $topicObject->eachAttachment(); my @list = sort $it->all(); return @list; } @@ -2168,7 +2168,6 @@ sub moveTopic { $web, $topic, $Foswiki::Meta::reason ); } - my $toWeb = Foswiki::Meta->new( $Foswiki::Plugins::SESSION, $newWeb ); unless ( $from->haveAccess('CHANGE') ) { throw Foswiki::AccessControlException( 'CHANGE', $Foswiki::Plugins::SESSION->{user},