Skip to content

Commit 911641b

Browse files
authored
Remove duplicate macro definitions of HASH_SET_* (#2024)
This PR removes duplicate macro definitions of HASH_SET_TAKE_FIELD, HASH_SET_TAKE_VALUE, and HASH_SET_COPY that were already defined in `server.h`. Keeping a single definition helps ensure consistency and avoids redundancy across files. https://github.com/valkey-io/valkey/blob/25ef0b3aff50864eba89f4ca6d8b56f8ff07690c/src/server.h#L3265-L3268 Signed-off-by: vitah <vitahlin@gmail.com>
1 parent 4571886 commit 911641b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/t_hash.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,6 @@ int hashTypeExists(robj *o, sds field) {
416416
* semantics of copying the values if needed.
417417
*
418418
*/
419-
#define HASH_SET_TAKE_FIELD (1 << 0)
420-
#define HASH_SET_TAKE_VALUE (1 << 1)
421-
#define HASH_SET_COPY 0
422419
int hashTypeSet(robj *o, sds field, sds value, int flags) {
423420
int update = 0;
424421

0 commit comments

Comments
 (0)