Skip to content

Commit 21927c9

Browse files
committed
msgs: remove unused globalAssert routine
1 parent 41b0259 commit 21927c9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compiler/front/msgs.nim

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,6 @@ proc handleReport*(
690690
of doDefault: unreachable(
691691
"Default error handing action must be turned into ignore/raise/abort")
692692

693-
template globalAssert*(
694-
conf: ConfigRef;
695-
cond: untyped, info: TLineInfo = unknownLineInfo, arg = "") =
696-
## avoids boilerplate
697-
if not cond:
698-
var arg2 = "'$1' failed" % [astToStr(cond)]
699-
if arg.len > 0: arg2.add "; " & astToStr(arg) & ": " & arg
700-
handleReport(conf, info, errGenerated, arg2, doRaise, instLoc())
701-
702693
template fatalReport*(conf: ConfigRef, info: TLineInfo, report: ReportTypes) =
703694
# this works around legacy reports stupidity
704695
handleReport(conf, wrap(report, instLoc(), info), instLoc(), doAbort)

0 commit comments

Comments
 (0)