Skip to content

Commit 4bb4b70

Browse files
committed
dead code cleanup
1 parent 7f44d5d commit 4bb4b70

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

src/redis_index.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include "rmalloc.h"
2020
#include <stdio.h>
2121

22-
RedisModuleType *InvertedIndexType;
23-
2422
static inline void updateTime(SearchTime *searchTime, int32_t durationNS) {
2523
if (RS_IsMock) return;
2624

src/redis_index.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,9 @@ QueryIterator *Redis_OpenReader(const RedisSearchCtx *ctx, RSToken *tok, int tok
2525
InvertedIndex *Redis_OpenInvertedIndex(const RedisSearchCtx *ctx, const char *term, size_t len,
2626
bool write, bool *outIsNew);
2727

28-
/*
29-
* Select a random term from the index that matches the index prefix and inveted key format.
30-
* It tries RANDOMKEY 10 times and returns NULL if it can't find anything.
31-
*/
32-
const char *Redis_SelectRandomTerm(const RedisSearchCtx *ctx, size_t *tlen);
33-
3428
#define DONT_CREATE_INDEX false
3529
#define CREATE_INDEX true
3630

37-
typedef int (*ScanFunc)(RedisModuleCtx *ctx, RedisModuleString *keyName, void *opaque);
38-
3931
int Redis_LegacyDeleteKey(RedisModuleCtx *ctx, RedisModuleString *s);
4032
int Redis_DeleteKeyC(RedisModuleCtx *ctx, char *cstr);
4133

@@ -44,7 +36,6 @@ int Redis_LegacyDropScanHandler(RedisModuleCtx *ctx, RedisModuleString *kn, void
4436

4537
/**
4638
* Format redis key for a term.
47-
* TODO: Add index name to it
4839
*/
4940
RedisModuleString *Legacy_fmtRedisTermKey(const RedisSearchCtx *ctx, const char *term, size_t len);
5041

0 commit comments

Comments
 (0)