[refactoring] remove unused imports in the compiler and in some stdlib modules

This commit is contained in:
Araq 2019-07-18 00:36:03 +02:00
commit 07d465ca42
76 changed files with 531 additions and 558 deletions

View file

@ -1849,7 +1849,7 @@ proc expandFilename*(filename: string): string {.rtl, extern: "nos$1",
break
# getFullPathName doesn't do case corrections, so we have to use this convoluted
# way of retrieving the true filename
for x in walkFiles(result.string):
for x in walkFiles(result):
result = x
if not existsFile(result) and not existsDir(result):
raise newException(OSError, "file '" & result & "' does not exist")