X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3aad0de2e9f7c1f6f3d1259995fcfe0eade91c5d..59333ffd37f666222d80921f854a3bedd2e3d11a:/src/db.c diff --git a/src/db.c b/src/db.c index 943878b4..3c75f6ba 100644 --- a/src/db.c +++ b/src/db.c @@ -499,14 +499,6 @@ int expireIfNeeded(redisDb *db, robj *key) { * Expires Commands *----------------------------------------------------------------------------*/ -/* Given an string object return true if it contains exactly the "ms" - * or "MS" string. This is used in order to check if the last argument - * of EXPIRE, EXPIREAT or TTL is "ms" to switch into millisecond input/output */ -int stringObjectEqualsMs(robj *a) { - char *arg = a->ptr; - return tolower(arg[0]) == 'm' && tolower(arg[1]) == 's' && arg[2] == '\0'; -} - /* This is the generic command implementation for EXPIRE, PEXPIRE, EXPIREAT * and PEXPIREAT. Because the commad second argument may be relative or absolute * the "basetime" argument is used to signal what the base time is (either 0