Merge pull request #12613 from nim-lang/miran-unused-imports

Remove unused imports
This commit is contained in:
Dominik Picheta 2019-11-06 22:08:43 +00:00 • committed by GitHub
commit 675189c77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 22 additions and 46 deletions

View file

@ -12,10 +12,7 @@
include "system/inclrtl"
when not defined(windows):
import strutils, posix, os
when defined(linux):
import linux
import posix
when defined(freebsd) or defined(macosx):
{.emit:"#include <sys/types.h>".}

View file

@ -3,7 +3,8 @@
when not declared(os) and not declared(ospaths):
{.error: "This is an include file for os.nim!".}
from parseutils import skipIgnoreCase
when defined(windows):
from parseutils import skipIgnoreCase
proc c_getenv(env: cstring): cstring {.
importc: "getenv", header: "<stdlib.h>".}

View file

@ -27,9 +27,6 @@ when defined(windows):
else:
import posix
when defined(linux):
import linux
type
ProcessOption* = enum ## Options that can be passed to `startProcess proc
## <#startProcess,string,string,openArray[string],StringTableRef,set[ProcessOption]>`_.

View file

@ -151,8 +151,7 @@
include "system/inclrtl"
import
os, strutils
import os
type
CmdLineKind* = enum ## The detected command line token.