summary refs log tree commit diff stats
path: root/compiler/nimblecmd.nim
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2017-02-22 17:33:12 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-02-22 17:33:12 +0100
commit92c2a51bf763c16579da6b9e2ceaede5552bf5ff (patch)
tree18f20e5f69c11209d0e3b8d71df05f9ad1e1edad /compiler/nimblecmd.nim
parent2ba374f9ab5f5ede0a4c67ab8339799108e3d720 (diff)
downloadNim-92c2a51bf763c16579da6b9e2ceaede5552bf5ff.tar.gz
removed compiler internal list implementation (#5371)
Diffstat (limited to 'compiler/nimblecmd.nim')
-rw-r--r--compiler/nimblecmd.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/nimblecmd.nim b/compiler/nimblecmd.nim
index 9c5c17287..e6466fc24 100644
--- a/compiler/nimblecmd.nim
+++ b/compiler/nimblecmd.nim
@@ -9,11 +9,11 @@
 
 ## Implements some helper procs for Nimble (Nim's package manager) support.
 
-import parseutils, strutils, strtabs, os, options, msgs, lists
+import parseutils, strutils, strtabs, os, options, msgs
 
 proc addPath*(path: string, info: TLineInfo) =
-  if not contains(options.searchPaths, path):
-    lists.prependStr(options.searchPaths, path)
+  if not options.searchPaths.contains(path):
+    options.searchPaths.insert(path, 0)
 
 proc versionSplitPos(s: string): int =
   result = s.len-2
@@ -61,7 +61,7 @@ iterator chosen(packages: StringTableRef): string =
 proc addNimblePath(p: string, info: TLineInfo) =
   if not contains(options.searchPaths, p):
     message(info, hintPath, p)
-    lists.prependStr(options.lazyPaths, p)
+    options.lazyPaths.insert(p, 0)
 
 proc addPathRec(dir: string, info: TLineInfo) =
   var packages = newStringTable(modeStyleInsensitive)