From 367ba4125fa08440f1e33799ccf2fedfe88129aa Mon Sep 17 00:00:00 2001 From: Huang Zhw Date: Sat, 6 Mar 2021 01:54:34 +0800 Subject: [PATCH] Remove some dead code (#8605) --- src/config.c | 2 -- src/server.h | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/config.c b/src/config.c index 1d6ce6b8c..2f4a13ae8 100644 --- a/src/config.c +++ b/src/config.c @@ -229,8 +229,6 @@ typedef union typeData { typedef struct typeInterface { /* Called on server start, to init the server with default value */ void (*init)(typeData data); - /* Called on server start, should return 1 on success, 0 on error and should set err */ - int (*load)(typeData data, sds *argc, int argv, const char **err); /* Called on server startup and CONFIG SET, returns 1 on success, 0 on error * and can set a verbose err string, update is true when called from CONFIG SET */ int (*set)(typeData data, sds value, int update, const char **err); diff --git a/src/server.h b/src/server.h index da4440a21..ef1ac1e48 100644 --- a/src/server.h +++ b/src/server.h @@ -735,8 +735,6 @@ typedef struct multiState { int cmd_inv_flags; /* Same as cmd_flags, OR-ing the ~flags. so that it is possible to know if all the commands have a certain flag. */ - int minreplicas; /* MINREPLICAS for synchronous replication */ - time_t minreplicas_timeout; /* MINREPLICAS timeout as unixtime. */ } multiState; /* This structure holds the blocking operation state for a client. @@ -762,7 +760,6 @@ typedef struct blockingState { size_t xread_count; /* XREAD COUNT option. */ robj *xread_group; /* XREADGROUP group name. */ robj *xread_consumer; /* XREADGROUP consumer name. */ - mstime_t xread_retry_time, xread_retry_ttl; int xread_group_noack; /* BLOCKED_WAIT */