From 97498d26f7378e760b453e62aa168d770bf16627 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Wed, 15 Jul 2015 05:32:35 +0100 Subject: [PATCH] remove dead code --- common/errors.go | 20 -------------------- common/utils.go | 7 +++++++ 2 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 common/errors.go diff --git a/common/errors.go b/common/errors.go deleted file mode 100644 index ea6fed41..00000000 --- a/common/errors.go +++ /dev/null @@ -1,20 +0,0 @@ -package common - -func CheckFatal(e error) { - if e != nil { - Log.Fatal(e) - } -} - -func CheckWarn(e error) { - if e != nil { - Log.Warningln(e) - } -} - -// Assert test is true, panic otherwise -func Assert(test bool) { - if !test { - panic("Assertion failure") - } -} diff --git a/common/utils.go b/common/utils.go index a3c372b2..95d6872b 100644 --- a/common/utils.go +++ b/common/utils.go @@ -1,5 +1,12 @@ package common +// Assert test is true, panic otherwise +func Assert(test bool) { + if !test { + panic("Assertion failure") + } +} + func OnOff(b bool) string { if b { return "on"