From 4cb8bb29525a012ef0f1ea1b237dab09c5e9b6c3 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 7 Apr 2012 02:10:48 +0200 Subject: [PATCH] Never used function stringObjectEqualsMs() removed. --- src/db.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/db.c b/src/db.c index 52ae335f..fff63f48 100644 --- a/src/db.c +++ b/src/db.c @@ -510,14 +510,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 -- 2.45.2