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:
12
cache/conv.go
vendored
12
cache/conv.go
vendored
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user