1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 19:50:39 +00:00

remove the dead code

This commit is contained in:
astaxie
2015-09-17 23:47:26 +08:00
parent e665a7dd32
commit 4823a0f114
6 changed files with 5 additions and 44 deletions

12
cache/conv.go vendored
View File

@ -98,15 +98,3 @@ func GetBool(v interface{}) bool {
}
return false
}
// getByteArray convert interface to byte slice.
func getByteArray(v interface{}) []byte {
switch result := v.(type) {
case []byte:
return result
case string:
return []byte(result)
default:
return nil
}
}