From e8a5325196cf570011df81d66d6c7d7a907f2492 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Wed, 22 Apr 2009 18:37:00 +0200 Subject: [PATCH] winemaker: Remove unused function. --- tools/winemaker | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tools/winemaker b/tools/winemaker index 43efecc4d07..ed9c5e50c48 100755 --- a/tools/winemaker +++ b/tools/winemaker @@ -397,28 +397,6 @@ sub is_absolute($) } ## -# 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. # We either get it from the directories hashtable which acts as a # cache, or use opendir, readdir, closedir and store the result -- 2.11.4.GIT