diff options
author | Dmitry Atamanov <data-man@users.noreply.github.com> | 2018-05-25 00:04:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 00:04:30 +0300 |
commit | e206a8d95240e766474d601f529fef1c0026f80f (patch) | |
tree | efd87a5f80850612bfc9f956536e3ecfa9ed4afb /compiler | |
parent | 85b7d8fcc4032a0d95af3f25faf1cc850f7d59f5 (diff) | |
download | Nim-e206a8d95240e766474d601f529fef1c0026f80f.tar.gz |
Use new binarySearch everywhere (#7876)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/options.nim | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index 1c4bb6157..9779f2020 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -520,20 +520,6 @@ proc isDynlibOverride*(conf: ConfigRef; lib: string): bool = result = optDynlibOverrideAll in conf.globalOptions or conf.dllOverrides.hasKey(lib.canonDynlibName) -proc binaryStrSearch*(x: openArray[string], y: string): int = - var a = 0 - var b = len(x) - 1 - while a <= b: - var mid = (a + b) div 2 - var c = cmpIgnoreCase(x[mid], y) - if c < 0: - a = mid + 1 - elif c > 0: - b = mid - 1 - else: - return mid - result = - 1 - proc parseIdeCmd*(s: string): IdeCmd = case s: of "sug": ideSug |