remove unused imports
This commit is contained in:
parent
59c212607e
commit
cc3e9ca164
11 changed files with 12 additions and 28 deletions
|
|
@ -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>".}
|
||||
|
|
|
|||
|
|
@ -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>".}
|
||||
|
|
|
|||
|
|
@ -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]>`_.
|
||||
|
|
|
|||
|
|
@ -151,8 +151,7 @@
|
|||
|
||||
include "system/inclrtl"
|
||||
|
||||
import
|
||||
os, strutils
|
||||
import os
|
||||
|
||||
type
|
||||
CmdLineKind* = enum ## The detected command line token.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue