Removed unused code

This commit is contained in:
tidwall 2018-11-23 01:24:35 -07:00
parent 13f39d99c6
commit 58421ef806
1 changed files with 0 additions and 17 deletions

View File

@ -101,23 +101,6 @@ func (server *Server) loadAOF() error {
}
}
// func qlower(s []byte) string {
// if len(s) == 3 {
// if s[0] == 'S' && s[1] == 'E' && s[2] == 'T' {
// return "set"
// }
// if s[0] == 'D' && s[1] == 'E' && s[2] == 'L' {
// return "del"
// }
// }
// for i := 0; i < len(s); i++ {
// if s[i] >= 'A' || s[i] <= 'Z' {
// return strings.ToLower(string(s))
// }
// }
// return string(s)
// }
func commandErrIsFatal(err error) bool {
// FSET (and other writable commands) may return errors that we need
// to ignore during the loading process. These errors may occur (though unlikely)