Unverified Commit 9c927e9d authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Delete some unimplemented prototype. (#8882)

Remove forward declarations from header files to functions that do not exist.
parent 1eff8564
...@@ -36,7 +36,6 @@ typedef void lazy_free_fn(void *args[]); ...@@ -36,7 +36,6 @@ typedef void lazy_free_fn(void *args[]);
void bioInit(void); void bioInit(void);
unsigned long long bioPendingJobsOfType(int type); unsigned long long bioPendingJobsOfType(int type);
unsigned long long bioWaitStepOfType(int type); unsigned long long bioWaitStepOfType(int type);
time_t bioOlderJobOfType(int type);
void bioKillThreads(void); void bioKillThreads(void);
void bioCreateCloseJob(int fd); void bioCreateCloseJob(int fd);
void bioCreateFsyncJob(int fd); void bioCreateFsyncJob(int fd);
......
...@@ -128,7 +128,6 @@ int geohashDecodeWGS84(const GeoHashBits hash, GeoHashArea *area); ...@@ -128,7 +128,6 @@ int geohashDecodeWGS84(const GeoHashBits hash, GeoHashArea *area);
int geohashDecodeAreaToLongLat(const GeoHashArea *area, double *xy); int geohashDecodeAreaToLongLat(const GeoHashArea *area, double *xy);
int geohashDecodeToLongLatType(const GeoHashBits hash, double *xy); int geohashDecodeToLongLatType(const GeoHashBits hash, double *xy);
int geohashDecodeToLongLatWGS84(const GeoHashBits hash, double *xy); int geohashDecodeToLongLatWGS84(const GeoHashBits hash, double *xy);
int geohashDecodeToLongLatMercator(const GeoHashBits hash, double *xy);
void geohashNeighbors(const GeoHashBits *hash, GeoHashNeighbors *neighbors); void geohashNeighbors(const GeoHashBits *hash, GeoHashNeighbors *neighbors);
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -47,7 +47,6 @@ typedef struct { ...@@ -47,7 +47,6 @@ typedef struct {
GeoHashNeighbors neighbors; GeoHashNeighbors neighbors;
} GeoHashRadius; } GeoHashRadius;
int GeoHashBitsComparator(const GeoHashBits *a, const GeoHashBits *b);
uint8_t geohashEstimateStepsByRadius(double range_meters, double lat); uint8_t geohashEstimateStepsByRadius(double range_meters, double lat);
int geohashBoundingBox(GeoShape *shape, double *bounds); int geohashBoundingBox(GeoShape *shape, double *bounds);
GeoHashRadius geohashCalculateAreasByShapeWGS84(GeoShape *shape); GeoHashRadius geohashCalculateAreasByShapeWGS84(GeoShape *shape);
......
...@@ -180,8 +180,6 @@ void quicklistReleaseIterator(quicklistIter *iter); ...@@ -180,8 +180,6 @@ void quicklistReleaseIterator(quicklistIter *iter);
quicklist *quicklistDup(quicklist *orig); quicklist *quicklistDup(quicklist *orig);
int quicklistIndex(const quicklist *quicklist, const long long index, int quicklistIndex(const quicklist *quicklist, const long long index,
quicklistEntry *entry); quicklistEntry *entry);
void quicklistRewind(quicklist *quicklist, quicklistIter *li);
void quicklistRewindTail(quicklist *quicklist, quicklistIter *li);
void quicklistRotate(quicklist *quicklist); void quicklistRotate(quicklist *quicklist);
int quicklistPopCustom(quicklist *quicklist, int where, unsigned char **data, int quicklistPopCustom(quicklist *quicklist, int where, unsigned char **data,
unsigned int *sz, long long *sval, unsigned int *sz, long long *sval,
......
...@@ -1978,7 +1978,7 @@ void checkChildrenDone(void) { ...@@ -1978,7 +1978,7 @@ void checkChildrenDone(void) {
} }
} }
/* Called from serverCron and loadingCron to update cached memory metrics. */ /* Called from serverCron and cronUpdateMemoryStats to update cached memory metrics. */
void cronUpdateMemoryStats() { void cronUpdateMemoryStats() {
/* Record the max memory used since the server was started. */ /* Record the max memory used since the server was started. */
if (zmalloc_used_memory() > server.stat_peak_memory) if (zmalloc_used_memory() > server.stat_peak_memory)
......
...@@ -1803,7 +1803,6 @@ void redisSetCpuAffinity(const char *cpulist); ...@@ -1803,7 +1803,6 @@ void redisSetCpuAffinity(const char *cpulist);
/* networking.c -- Networking and Client related operations */ /* networking.c -- Networking and Client related operations */
client *createClient(connection *conn); client *createClient(connection *conn);
void closeTimedoutClients(void);
void freeClient(client *c); void freeClient(client *c);
void freeClientAsync(client *c); void freeClientAsync(client *c);
void resetClient(client *c); void resetClient(client *c);
...@@ -1817,7 +1816,6 @@ void setDeferredAttributeLen(client *c, void *node, long length); ...@@ -1817,7 +1816,6 @@ void setDeferredAttributeLen(client *c, void *node, long length);
void setDeferredPushLen(client *c, void *node, long length); void setDeferredPushLen(client *c, void *node, long length);
void processInputBuffer(client *c); void processInputBuffer(client *c);
void processGopherRequest(client *c); void processGopherRequest(client *c);
void acceptHandler(aeEventLoop *el, int fd, void *privdata, int mask);
void acceptTcpHandler(aeEventLoop *el, int fd, void *privdata, int mask); void acceptTcpHandler(aeEventLoop *el, int fd, void *privdata, int mask);
void acceptTLSHandler(aeEventLoop *el, int fd, void *privdata, int mask); void acceptTLSHandler(aeEventLoop *el, int fd, void *privdata, int mask);
void acceptUnixHandler(aeEventLoop *el, int fd, void *privdata, int mask); void acceptUnixHandler(aeEventLoop *el, int fd, void *privdata, int mask);
...@@ -1879,7 +1877,6 @@ void unpauseClients(void); ...@@ -1879,7 +1877,6 @@ void unpauseClients(void);
int areClientsPaused(void); int areClientsPaused(void);
int checkClientPauseTimeoutAndReturnIfPaused(void); int checkClientPauseTimeoutAndReturnIfPaused(void);
void processEventsWhileBlocked(void); void processEventsWhileBlocked(void);
void loadingCron(void);
void whileBlockedCron(); void whileBlockedCron();
void blockingOperationStarts(); void blockingOperationStarts();
void blockingOperationEnds(); void blockingOperationEnds();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment