Remove unnecessary system imports

This commit is contained in:
joachimschmidt557 2019-04-04 08:24:08 +02:00
parent bed37dc237
commit 94c57b1da2
6 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@ import common
proc catFile(file:string) =
if not existsFile(file):
err "cat: " & file & ": No such file or directory"
system.quit 1
quit 1
const bufSize = 1024
var
f = open(file, fmRead)

View file

@ -2,6 +2,6 @@ import cligen
import common
proc main() =
system.quit(1)
quit(1)
dispatch(main, version=("version", nimbaseVersion))

View file

@ -4,7 +4,7 @@ import common
proc catFile(file:string) =
if not existsFile(file):
err "rev: " & file & ": No such file or directory"
system.quit 1
quit 1
var
f = open(file, fmRead)
for line in lines(f):

2
rm.nim
View file

@ -1,4 +1,4 @@
import cligen, os, system
import cligen, os
import common
const

View file

@ -4,7 +4,7 @@ import common
proc catFile(file:string) =
if not existsFile(file):
err "tac: " & file & ": No such file or directory"
system.quit 1
quit 1
var
f = open(file, fmRead)
reverseLines: seq[string]

View file

@ -2,6 +2,6 @@ import cligen
import common
proc main() =
system.quit(0)
quit(0)
dispatch(main, version=("version", nimbaseVersion))