winemaker: Remove unused function.

This commit is contained in:
André Hentschel 2009-04-22 18:37:00 +02:00 committed by Alexandre Julliard
parent d30df7de06
commit e8a5325196
1 changed files with 0 additions and 22 deletions

View File

@ -396,28 +396,6 @@ sub is_absolute($)
return ($path =~ /^[\/~\$]/); return ($path =~ /^[\/~\$]/);
} }
##
# Performs a binary search looking for the specified item
sub bsearch($$)
{
my $array=$_[0];
my $item=$_[1];
my $last=@{$array}-1;
my $first=0;
while ($first<=$last) {
my $index=int(($first+$last)/2);
my $cmp=@$array[$index] cmp $item;
if ($cmp<0) {
$first=$index+1;
} elsif ($cmp>0) {
$last=$index-1;
} else {
return $index;
}
}
}
## ##
# Retrieves the contents of the specified directory. # Retrieves the contents of the specified directory.
# We either get it from the directories hashtable which acts as a # We either get it from the directories hashtable which acts as a