From 0a11c4a14093ac6486eea2a912a2befdf3ea0fb3 Mon Sep 17 00:00:00 2001 From: Yunxiao Du Date: Fri, 23 Aug 2024 12:17:27 +0800 Subject: [PATCH] Delete redundant declaration clusterNodeCoversSlot and countKeysInSlot (#930) Delete redundant declaration, clusterNodeCoversSlot and countKeysInSlot has been declared in cluster.h Signed-off-by: Yunxiao Du --- src/cluster_legacy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index 0fb332cbc..423ea5aab 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -62,7 +62,6 @@ void clusterSendPing(clusterLink *link, int type); void clusterSendFail(char *nodename); void clusterSendFailoverAuthIfNeeded(clusterNode *node, clusterMsg *request); void clusterUpdateState(void); -int clusterNodeCoversSlot(clusterNode *n, int slot); list *clusterGetNodesInMyShard(clusterNode *node); int clusterNodeAddReplica(clusterNode *primary, clusterNode *replica); int clusterAddSlot(clusterNode *n, int slot); @@ -93,7 +92,6 @@ void moduleCallClusterReceivers(const char *sender_id, uint32_t len); const char *clusterGetMessageTypeString(int type); void removeChannelsInSlot(unsigned int slot); -unsigned int countKeysInSlot(unsigned int hashslot); unsigned int countChannelsInSlot(unsigned int hashslot); unsigned int delKeysInSlot(unsigned int hashslot); void clusterAddNodeToShard(const char *shard_id, clusterNode *node);