remove dead code
This commit is contained in:
1 parent
36292216fd
commit
97498d26f7
2 files changed
+7
-20
No files matched your search
@@ -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")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,12 @@
|
|||||||
package common
|
package common
|
||||||
|
|
||||||
|
// Assert test is true, panic otherwise
|
||||||
|
func Assert(test bool) {
|
||||||
|
if !test {
|
||||||
|
panic("Assertion failure")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func OnOff(b bool) string {
|
func OnOff(b bool) string {
|
||||||
if b {
|
if b {
|
||||||
return "on"
|
return "on"
|
||||||
|
|||||||
Reference in new issue
Block a user