Skip to content

Commit

Permalink
Item13883: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jan 17, 2023
1 parent 9fe9c4d commit 01ec6c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/lib/Foswiki/Func.pm
Expand Up @@ -1767,7 +1767,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;
}
Expand Down Expand Up @@ -2196,7 +2196,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},
Expand Down

0 comments on commit 01ec6c7

Please sign in to comment.