From e09b51869b355644e4f481634729ed2903acad97 Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
Date: Tue, 8 Mar 2011 15:10:20 +0100
Subject: [PATCH] useless function removed

---
 TODO          | 2 ++
 src/dscache.c | 7 -------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/TODO b/TODO
index edcd2b32..48ea8ac6 100644
--- a/TODO
+++ b/TODO
@@ -20,6 +20,8 @@ DISKSTORE TODO
 * Fix DBSIZE to really do something interesting
 * Add a DEBUG command to check if an entry is or not in memory currently
 
+* dscache.c near 236, kobj = createStringObject... we could use static obj.
+
 APPEND ONLY FILE
 ================
 
diff --git a/src/dscache.c b/src/dscache.c
index 683c5c1c..66e6ee63 100644
--- a/src/dscache.c
+++ b/src/dscache.c
@@ -240,13 +240,6 @@ int cacheFreeOneEntry(void) {
     return REDIS_OK;
 }
 
-/* Return true if it's safe to swap out objects in a given moment.
- * Basically we don't want to swap objects out while there is a BGSAVE
- * or a BGAEOREWRITE running in backgroud. */
-int dsCanTouchDiskStore(void) {
-    return (server.bgsavechildpid == -1 && server.bgrewritechildpid == -1);
-}
-
 /* ==================== Disk store negative caching  ========================
  *
  * When disk store is enabled, we need negative caching, that is, to remember