Remove unused function.cpp:binary (#3626)

This commit is contained in:
Johan Engelen 2020-12-01 09:52:36 +01:00 committed by GitHub
parent f85f19b39c
commit b7b676e8da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1382,22 +1382,3 @@ DValue *DtoArgument(Parameter *fnarg, Expression *argexp) {
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;
}