code cleanup: there is no MoveError and sinks are always available

This commit is contained in:
Andreas Rumpf 2019-03-03 12:34:00 +01:00
commit 0fd5417aff
2 changed files with 16 additions and 32 deletions

View file

@ -59,11 +59,6 @@ proc chckNil(p: pointer) =
if p == nil:
sysFatal(NilAccessError, "attempt to write to a nil address")
when defined(nimNewRuntime):
proc chckMove(b: bool) {.compilerproc.} =
if not b:
sysFatal(MoveError, "attempt to access an object that was moved")
proc chckNilDisp(p: pointer) {.compilerproc.} =
if p == nil:
sysFatal(NilAccessError, "cannot dispatch; dispatcher is nil")