winemaker: Remove unused function.
This commit is contained in:
parent
d30df7de06
commit
e8a5325196
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue