diff options
author | Jordan Ayers <jordan.ayers@gmail.com> | 2011-08-24 21:55:08 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-08-28 16:41:48 -0500 |
commit | a73b9fc0e2cccc240cadf40d6566fa15c46f70b7 (patch) | |
tree | 63d2219852c1ffa3a3809f717e3acd4d08b21b07 | |
parent | b56108b3fb8e7e2a6d2650920c8fda3586a040d5 (diff) |
Remove some unused perl functions.
Added in CWS nativefixer5, but never used:
installer::existence::filename_exists_in_filesarray
installer::existence::filegid_exists_in_filesarray
Added in CWS native222, but never used:
installer::downloadsigner::logfollowmeinfohash
Added in CWS newscpzip2, but never used:
installer::converter::convert_hash_into_array
Added in 2004, used for a month, then dropped from usage:
installer::converter::get_number_from_directory
-rw-r--r-- | solenv/bin/modules/installer/converter.pm | 25 | ||||
-rw-r--r-- | solenv/bin/modules/installer/downloadsigner.pm | 18 | ||||
-rw-r--r-- | solenv/bin/modules/installer/existence.pm | 50 |
3 files changed, 0 insertions, 93 deletions
diff --git a/solenv/bin/modules/installer/converter.pm b/solenv/bin/modules/installer/converter.pm index 53eb1081aa06..2fe728b3dbac 100644 --- a/solenv/bin/modules/installer/converter.pm +++ b/solenv/bin/modules/installer/converter.pm @@ -48,13 +48,6 @@ sub convert_array_to_hash return \%newhash; } -sub convert_hash_into_array -{ - my ($hashref) = @_; - - return [map { "$_ = $hashref->{$_}\n" } keys %{$hashref}]; -} - ############################################################################# # Converting a string list with separator $listseparator # into an array @@ -217,24 +210,6 @@ sub combine_arrays_from_references_first_win } ################################################################# -# Returning the current ending number of a directory -################################################################# - -sub get_number_from_directory -{ - my ( $directory ) = @_; - - my $number = 0; - - if ( $directory =~ /\_(\d+)\s*$/ ) - { - $number = $1; - } - - return $number; -} - -################################################################# # Replacing separators, that are included into quotes ################################################################# diff --git a/solenv/bin/modules/installer/downloadsigner.pm b/solenv/bin/modules/installer/downloadsigner.pm index 8a63242e0685..d3af89851f40 100644 --- a/solenv/bin/modules/installer/downloadsigner.pm +++ b/solenv/bin/modules/installer/downloadsigner.pm @@ -544,24 +544,6 @@ sub createproductlist return \@infofilelist; } -############################################# -# Logging the content of the download hash -############################################# - -sub logfollowmeinfohash -{ - my ( $followmehash ) = @_; - - print "\n*****************************************\n"; - print "Content of follow-me info file:\n"; - print "finalinstalldir: $followmehash->{'finalinstalldir'}\n"; - print "downloadname: $followmehash->{'downloadname'}\n"; - print "languagestring: $followmehash->{'languagestring'}\n"; - foreach my $lang ( @{$followmehash->{'languagesarray'}} ) { print "languagesarray: $lang\n"; } - foreach my $path ( @{$followmehash->{'includepatharray'}} ) { print "includepatharray: $path"; } - foreach my $key ( sort keys %{$followmehash->{'allvariableshash'}} ) { print "allvariableshash: $key : $followmehash->{'allvariableshash'}->{$key}\n"; } -} - ######################################################################## # Renaming the follow me info file, if it was successfully used. # This can only be done, if the parameter "-d" was used with a diff --git a/solenv/bin/modules/installer/existence.pm b/solenv/bin/modules/installer/existence.pm index 1ecf9ce9965b..1f362f7a0aeb 100644 --- a/solenv/bin/modules/installer/existence.pm +++ b/solenv/bin/modules/installer/existence.pm @@ -137,54 +137,4 @@ sub get_specified_file_by_name return $onefile; } -##################################################################### -# Checking existence of a specific file, defined by its "Name" -##################################################################### - -sub filename_exists_in_filesarray -{ - my ($filesarrayref, $searchname) = @_; - - my $foundfile = 0; - - for ( my $i = 0; $i <= $#{$filesarrayref}; $i++ ) - { - my $onefile = ${$filesarrayref}[$i]; - my $filename = $onefile->{'Name'}; - - if ( $filename eq $searchname ) - { - $foundfile = 1; - last; - } - } - - return $foundfile; -} - -##################################################################### -# Checking existence of a specific file, defined by its "gid" -##################################################################### - -sub filegid_exists_in_filesarray -{ - my ($filesarrayref, $searchgid) = @_; - - my $foundfile = 0; - - for ( my $i = 0; $i <= $#{$filesarrayref}; $i++ ) - { - my $onefile = ${$filesarrayref}[$i]; - my $filegid = $onefile->{'gid'}; - - if ( $filegid eq $searchgid ) - { - $foundfile = 1; - last; - } - } - - return $foundfile; -} - 1; |