Skip to content

Commit 88142c9

Browse files
committed
getting rid of excess imports
since rust-lang/rust#63562 fixed
1 parent dde3fce commit 88142c9

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

src/Makefile_wasm

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ EXPORT_FUNCS = \
1313
--export=deallocate,$\
1414
--export=invoke,$\
1515
--export=load,$\
16-
--export=store,$\
17-
--export=redis_allocate,$\
18-
--export=redis_deallocate,$\
19-
--export=redis_invoke,$\
20-
--export=redis_load,$\
21-
--export=redis_store
16+
--export=store
2217

2318
REDIS_SERVER_SRC = \
2419
adlist.c\

src/wrapper.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,18 @@ void* allocate(size_t size) {
2121
return zmalloc(size + 1);
2222
}
2323

24-
void* redis_allocate(size_t size) {
25-
return allocate(size);
26-
}
27-
2824
void deallocate(void *ptr, int size) {
2925
zfree(ptr);
3026
}
3127

32-
void redis_deallocate(void *ptr, int size) {
33-
deallocate(ptr, size);
34-
}
35-
3628
void store(char *ptr, unsigned char byte) {
3729
*ptr = byte;
3830
}
3931

40-
void redis_store(char *ptr, unsigned char byte) {
41-
store(ptr, byte);
42-
}
43-
4432
unsigned char load(const unsigned char *ptr) {
4533
return *ptr;
4634
}
4735

48-
unsigned char redis_load(const unsigned char *ptr) {
49-
return load(ptr);
50-
}
51-
5236
// Cleans client output buffers to - client is blocked and
5337
// doesn't receive requests until output buffer isn't empty.
5438
void clean_client_buffer(client *c) {
@@ -145,7 +129,3 @@ const char *invoke(char *request, int request_size) {
145129

146130
return response;
147131
}
148-
149-
const char *redis_invoke(char *request, int request_size) {
150-
return invoke(request, request_size);
151-
}

0 commit comments

Comments
 (0)