From 14da5a0077f8dcbdc11f80cf855955506b1051e6 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 3 Jul 2019 02:31:36 +0300 Subject: [PATCH] Move readPragma to std_shims --- confutils.nim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/confutils.nim b/confutils.nim index 5246b55..b54c97b 100644 --- a/confutils.nim +++ b/confutils.nim @@ -269,10 +269,6 @@ proc load*(Configuration: type, type FieldSetter = proc (cfg: var Configuration, val: TaintedString): bool {.nimcall.} - template readPragma(field, name): NimNode = - let p = field.pragmas.findPragma bindSym(name) - if p != nil and p.len == 2: p[1] else: p - macro generateFieldSetters(RecordType: type): untyped = var recordDef = RecordType.getType[1].getImpl let makeDefaultValue = bindSym"makeDefaultValue"