diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-09-04 15:51:08 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-09-04 16:19:08 +0200 |
commit | c44c21a01321650f930d9e16b4d0763d5674eac1 (patch) | |
tree | 229141bc92c370cecb46b60ab26d20282dd9e072 /solenv/bin/modules | |
parent | 7429369678fdcf17c286b8c7238747b4a6b12866 (diff) |
Drop duplicating is_empty_dir
This version was introduced in b173b425a1c1478ab3c4b43e58e09b751e3e3387,
then in cabadfc288e5e7324723c62f36b918a80db90323, another copy was added
so that now install.phony.log had this line:
Subroutine is_empty_dir redefined at C:/lo/src/core/solenv/bin/modules/installer/systemactions.pm line 475.
Let's keep the newer version, that is at line 280.
Change-Id: I50f3668e47d4ea8f9c309abde8abe233cff12af5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102046
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'solenv/bin/modules')
-rw-r--r-- | solenv/bin/modules/installer/systemactions.pm | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/solenv/bin/modules/installer/systemactions.pm b/solenv/bin/modules/installer/systemactions.pm index 4f7a18bba5e6..a33c5a957b06 100644 --- a/solenv/bin/modules/installer/systemactions.pm +++ b/solenv/bin/modules/installer/systemactions.pm @@ -466,38 +466,6 @@ sub copy_directory } } -########################################## -# Copying all files from one directory -# to another directory -########################################## - -sub is_empty_dir -{ - my ($dir) = @_; - - my $directory_is_empty = 1; - my @sourcefiles = (); - - opendir(DIR, $dir); - @sourcefiles = readdir(DIR); - closedir(DIR); - - my $onefile; - my @realcontent = (); - - foreach $onefile (@sourcefiles) - { - if ((!($onefile eq ".")) && (!($onefile eq ".."))) - { - push(@realcontent, $onefile); - } - } - - if ( $#realcontent > -1 ) { $directory_is_empty = 0; } - - return $directory_is_empty; -} - ##################################################################### # Creating hard links to a complete directory with sub directories. ##################################################################### |