remove dead code

This commit is contained in:
Matthias Radestock committed 2015-07-15 05:32:35 +01:00
1 parent 36292216fd
commit 97498d26f7
2 files changed
+7 -20

No files matched your search

-20
View File
@@ -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")
}
}
+7
View File
@@ -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"