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
e3e94ec3
Commit
e3e94ec3
authored
Aug 01, 2018
by
antirez
Browse files
Remove old commented zslUpdateScore() from source.
parent
0b800c43
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
e3e94ec3
...
@@ -292,19 +292,6 @@ zskiplistNode *zslUpdateScore(zskiplist *zsl, double curscore, sds ele, double n
...
@@ -292,19 +292,6 @@ zskiplistNode *zslUpdateScore(zskiplist *zsl, double curscore, sds ele, double n
return
newnode
;
return
newnode
;
}
}
#if 0
zskiplistNode *zslUpdateScore(zskiplist *zsl, double curscore, sds ele, double newscore) {
zskiplistNode *node, *newnode;
serverAssert(zslDelete(zsl,curscore,ele,&node));
newnode = zslInsert(zsl,newscore,node->ele);
/* We reused the node->ele SDS string, free the node now
* since zslInsert created a new one. */
node->ele = NULL;
zslFreeNode(node);
return newnode;
}
#endif
int
zslValueGteMin
(
double
value
,
zrangespec
*
spec
)
{
int
zslValueGteMin
(
double
value
,
zrangespec
*
spec
)
{
return
spec
->
minex
?
(
value
>
spec
->
min
)
:
(
value
>=
spec
->
min
);
return
spec
->
minex
?
(
value
>
spec
->
min
)
:
(
value
>=
spec
->
min
);
}
}
...
...
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