Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9c927e9d
Unverified
Commit
9c927e9d
authored
Apr 29, 2021
by
Binbin
Committed by
GitHub
Apr 29, 2021
Browse files
Delete some unimplemented prototype. (#8882)
Remove forward declarations from header files to functions that do not exist.
parent
1eff8564
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/bio.h
View file @
9c927e9d
...
@@ -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
);
...
...
src/geohash.h
View file @
9c927e9d
...
@@ -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)
...
...
src/geohash_helper.h
View file @
9c927e9d
...
@@ -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
);
...
...
src/quicklist.h
View file @
9c927e9d
...
@@ -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
,
...
...
src/server.c
View file @
9c927e9d
...
@@ -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
)
...
...
src/server.h
View file @
9c927e9d
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment