remove unused imports

This commit is contained in:
narimiran
2019-11-06 12:01:00 +01:00
parent 59c212607e
commit cc3e9ca164
11 changed files with 12 additions and 28 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.