summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorTim Retout <tim@retout.co.uk>2012-02-17 18:30:09 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-02-18 09:40:51 +0000
commit19bc8814f18065f5024bd6a4a7154ddb9ec7fae2 (patch)
treeac9e79f579b849537ffadea0453da3e988f51284 /solenv
parent23af031b09dffe37222517d69f5337db26fdb307 (diff)
Remove unused par2script::existence.
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/par2script/existence.pm74
-rw-r--r--solenv/bin/modules/par2script/work.pm1
2 files changed, 0 insertions, 75 deletions
diff --git a/solenv/bin/modules/par2script/existence.pm b/solenv/bin/modules/par2script/existence.pm
deleted file mode 100644
index 08fb8eda4c7c..000000000000
--- a/solenv/bin/modules/par2script/existence.pm
+++ /dev/null
@@ -1,74 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-
-package par2script::existence;
-
-#############################
-# Test of existence
-#############################
-
-sub exists_in_array
-{
- my ($searchstring, $arrayref) = @_;
-
- my $alreadyexists = 0;
-
- for ( my $i = 0; $i <= $#{$arrayref}; $i++ )
- {
- if ( ${$arrayref}[$i] eq $searchstring)
- {
- $alreadyexists = 1;
- last;
- }
- }
-
- return $alreadyexists;
-}
-
-sub exists_in_array_of_hashes
-{
- my ($searchkey, $searchvalue, $arrayref) = @_;
-
- my $hashref;
- my $valueexists = 0;
-
- for ( my $i = 0; $i <= $#{$arrayref}; $i++ )
- {
- $hashref = ${$arrayref}[$i];
-
- if ( $hashref->{$searchkey} eq $searchvalue )
- {
- $valueexists = 1;
- last;
- }
- }
-
- return $valueexists;
-}
-
-1;
diff --git a/solenv/bin/modules/par2script/work.pm b/solenv/bin/modules/par2script/work.pm
index 10dd1ea7ecdb..9fc2aec67d91 100644
--- a/solenv/bin/modules/par2script/work.pm
+++ b/solenv/bin/modules/par2script/work.pm
@@ -28,7 +28,6 @@
package par2script::work;
-use par2script::existence;
use par2script::globals;
use par2script::remover;