summaryrefslogtreecommitdiffstats
path: root/lib/OpenSLX/Utils.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/OpenSLX/Utils.pm')
-rw-r--r--lib/OpenSLX/Utils.pm14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/OpenSLX/Utils.pm b/lib/OpenSLX/Utils.pm
index 8b3754bf..109bec6a 100644
--- a/lib/OpenSLX/Utils.pm
+++ b/lib/OpenSLX/Utils.pm
@@ -668,7 +668,6 @@ Returns the path of a binary it is installed in.
sub pathOf
{
my $binary = shift;
-
return qx{which $binary 2>/dev/null};
}
@@ -681,23 +680,10 @@ Returns whether a binary is found.
sub isInPath
{
my $binary = shift;
-
my $path = pathOf($binary);
return $path ? 1 : 0;
}
-=item B<isPackInstalled()>
-
-Check whether a certain package is installed. Could be refined somehow to use
-the package mechanism of the given distribution!?
-
-=cut
-
-sub isPackInstalled
-{
- my $pack = shift;
- return isInPath($pack);
-}
1;