From 33b6fc60c79dd3b2a13269eb4e33742ad6208d2c Mon Sep 17 00:00:00 2001 From: Filippo Cucchetto Date: Sun, 22 Nov 2015 23:11:06 +0100 Subject: [PATCH] Removed useless warning suppressions --- src/nimqml.nim | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/nimqml.nim b/src/nimqml.nim index 980abe7..2210273 100644 --- a/src/nimqml.nim +++ b/src/nimqml.nim @@ -27,46 +27,22 @@ type QMetaType* {.pure.} = enum ## \ var qobjectRegistry = initTable[ptr QObjectObj, bool]() template debugMsg(message: string) = - {.push warning[user]: off.} # workaround to remove warnings; this won't be needed soon when defined(debug): - {.pop.} echo "NimQml: ", message - else: - {.pop.} template debugMsg(typeName: string, procName: string) = - {.push warning[user]: off.} # workaround to remove warnings; this won't be needed soon when defined(debug): - {.pop.} var message = typeName message &= ": " message &= procName debugMsg(message) - else: - {.pop.} - -template debugMsg(typeName: string, procName: string, userMessage: string) = - {.push warning[user]: off.} # workaround to remove warnings; this won't be needed soon - when defined(debug): - {.pop.} - var message = typeName - message &= ": " - message &= procName - message &= " " - message &= userMessage - debugMsg(message) - else: - {.pop.} template newWithCondFinalizer(variable: expr, finalizer: expr) = ## calls ``new`` but only setting a finalizer when ``nimqml_use_finalizers`` ## is defined - {.push warning[user]: off.} # workaround to remove warnings; this won't be needed soon when defined(nimqml_use_finalizers): - {.pop.} new(variable, finalizer) else: - {.pop.} new(variable) # QVariant