mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Remove unused function.cpp:binary (#3626)
This commit is contained in:
parent
f85f19b39c
commit
b7b676e8da
1 changed files with 0 additions and 19 deletions
|
@ -1382,22 +1382,3 @@ DValue *DtoArgument(Parameter *fnarg, Expression *argexp) {
|
||||||
|
|
||||||
return arg;
|
return arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
int binary(const char *p, const char **tab, int high) {
|
|
||||||
int i = 0, j = high, k, l;
|
|
||||||
do {
|
|
||||||
k = (i + j) / 2;
|
|
||||||
l = strcmp(p, tab[k]);
|
|
||||||
if (!l) {
|
|
||||||
return k;
|
|
||||||
}
|
|
||||||
if (l < 0) {
|
|
||||||
j = k;
|
|
||||||
} else {
|
|
||||||
i = k + 1;
|
|
||||||
}
|
|
||||||
} while (i != j);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue