From: antirez Date: Sat, 7 Apr 2012 00:03:29 +0000 (+0200) Subject: Removed dead code: function rdbSaveTime() is no longer used since RDB now saves expir... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/f02aa7bb79ab571975d25e819dcb2a1c67b2c9c9?ds=sidebyside Removed dead code: function rdbSaveTime() is no longer used since RDB now saves expires in milliseconds. --- diff --git a/src/rdb.c b/src/rdb.c index 481efe9d..6736d8fc 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -26,11 +26,6 @@ int rdbLoadType(rio *rdb) { return type; } -int rdbSaveTime(rio *rdb, time_t t) { - int32_t t32 = (int32_t) t; - return rdbWriteRaw(rdb,&t32,4); -} - time_t rdbLoadTime(rio *rdb) { int32_t t32; if (rioRead(rdb,&t32,4) == 0) return -1;