Kaydet (Commit) d2405b54 authored tarafından Andras Timar's avatar Andras Timar

installer: remove unused code

Change-Id: I8f0229b8dd0a135f525076e98996d44be2018050
üst e520fa15
...@@ -1261,59 +1261,6 @@ sub get_free_number_in_uisequence_table ...@@ -1261,59 +1261,6 @@ sub get_free_number_in_uisequence_table
return $newnumber; return $newnumber;
} }
##################################################################
# Searching for a specified string in the feature table
##################################################################
sub get_feature_name
{
my ( $string, $featuretable ) = @_;
my $featurename = "";
for ( my $i = 0; $i <= $#{$featuretable}; $i++ )
{
if ( ${$featuretable}[$i] =~ /^\s*(\w+$string)\t/ )
{
$featurename = $1;
last;
}
}
return $featurename;
}
######################################################################
# Returning the toplevel directory name of one specific file
######################################################################
sub get_directory_name_from_file
{
my ($onefile) = @_;
my $destination = $onefile->{'destination'};
my $name = $onefile->{'Name'};
$destination =~ s/\Q$name\E\s*$//;
$destination =~ s/\Q$installer::globals::separator\E\s*$//;
my $path = "";
if ( $destination =~ /\Q$installer::globals::separator\E/ )
{
if ( $destination =~ /^\s*(\S.*\S\Q$installer::globals::separator\E)(\S.+\S?)/ )
{
$path = $2;
}
}
else
{
$path = $destination;
}
return $path;
}
############################################################# #############################################################
# Including the new subdir into the directory table # Including the new subdir into the directory table
############################################################# #############################################################
......
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