diff --git a/src/server.c b/src/server.c index 5a0da03ed0..16cf285e1b 100644 --- a/src/server.c +++ b/src/server.c @@ -514,19 +514,6 @@ dictType migrateCacheDictType = { NULL /* allow to expand */ }; -/* Replication cached script dict (server.repl_scriptcache_dict). - * Keys are sds SHA1 strings, while values are not used at all in the current - * implementation. */ -dictType replScriptCacheDictType = { - dictSdsCaseHash, /* hash function */ - NULL, /* key dup */ - NULL, /* val dup */ - dictSdsKeyCaseCompare, /* key compare */ - dictSdsDestructor, /* key destructor */ - NULL, /* val destructor */ - NULL /* allow to expand */ -}; - /* Dict for for case-insensitive search using null terminated C strings. * The keys stored in dict are sds though. */ dictType stringSetDictType = { diff --git a/src/server.h b/src/server.h index 1f9e05062f..2083948c9b 100644 --- a/src/server.h +++ b/src/server.h @@ -1755,10 +1755,6 @@ struct redisServer { char master_replid[CONFIG_RUN_ID_SIZE+1]; /* Master PSYNC runid. */ long long master_initial_offset; /* Master PSYNC offset. */ int repl_slave_lazy_flush; /* Lazy FLUSHALL before loading DB? */ - /* Replication script cache. */ - dict *repl_scriptcache_dict; /* SHA1 all slaves are aware of. */ - list *repl_scriptcache_fifo; /* First in, first out LRU eviction. */ - unsigned int repl_scriptcache_size; /* Max number of elements. */ /* Synchronous replication. */ list *clients_waiting_acks; /* Clients waiting in WAIT command. */ int get_ack_from_slaves; /* If true we send REPLCONF GETACK. */ @@ -2302,7 +2298,6 @@ extern dictType zsetDictType; extern dictType dbDictType; extern double R_Zero, R_PosInf, R_NegInf, R_Nan; extern dictType hashDictType; -extern dictType replScriptCacheDictType; extern dictType stringSetDictType; extern dictType dbExpiresDictType; extern dictType modulesDictType;