Kaydet (Commit) c2e7add0 authored tarafından Tim Retout's avatar Tim Retout

installer: Remove unused remove_scpactions_without_name

Change-Id: I22e959adc5ee7a9901f812cadc7492fd229fbb15
üst e91df3e7
......@@ -411,8 +411,6 @@ if ( $installer::globals::helppack ) { installer::scriptitems::use_langpack_copy
if ( $allvariableshashref->{'PRODUCTNAME'} eq "LibO-dev" ) { installer::scriptitems::use_devversion_copy_scpaction($scpactionsinproductarrayref); }
if ( $installer::globals::patch ) { installer::scriptitems::use_patch_copy_scpaction($scpactionsinproductarrayref); }
# $scpactionsinproductarrayref = installer::scriptitems::remove_scpactions_without_name($scpactionsinproductarrayref);
installer::scriptitems::change_keys_of_scpactions($scpactionsinproductarrayref);
installer::logger::print_message( "... analyzing shortcuts ... \n" );
......
......@@ -1500,39 +1500,6 @@ sub make_filename_language_specific
}
}
############################################################################
# Removing all scpactions, that have no name.
# See: FlatLoaderZip
############################################################################
sub remove_scpactions_without_name
{
my ($itemsarrayref) = @_;
my $infoline;
my @newitemsarray = ();
for ( my $i = 0; $i <= $#{$itemsarrayref}; $i++ )
{
my $oneitem = ${$itemsarrayref}[$i];
my $name = "";
if ( $oneitem->{'Name'} ) { $name = $oneitem->{'Name'}; }
if ( $name eq "" )
{
$infoline = "ATTENTION: Removing scpaction $oneitem->{'gid'} from the installation set.\n";
push( @installer::globals::logfileinfo, $infoline);
next;
}
push(@newitemsarray, $oneitem);
}
return \@newitemsarray;
}
############################################################################
# Because of the item "File" the source name must be "Name". Therefore
# "Copy" is changed to "Name" and "Name" is changed to "DestinationName".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment