Skip to content

Commit 88676b8

Browse files
chasingeggfacebook-github-bot
authored andcommitted
Remove unused(and wrong) io macro (facebookresearch#4122)
Summary: `READSTRING` is not used and also the function's meaning is actually WRITESTRING, just remove it Pull Request resolved: facebookresearch#4122 Reviewed By: junjieqi, pankajsingh88 Differential Revision: D68043967 Pulled By: mnorris11 fbshipit-source-id: e2b5a7c4d7769315c6f91ba1bc0a921e7ce7e1a9
1 parent 3d0ac32 commit 88676b8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

faiss/impl/io_macros.h

-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@
4545
READANDCHECK((vec).data(), size); \
4646
}
4747

48-
#define READSTRING(s) \
49-
{ \
50-
size_t size = (s).size(); \
51-
WRITEANDCHECK(&size, 1); \
52-
WRITEANDCHECK((s).c_str(), size); \
53-
}
54-
5548
#define WRITEANDCHECK(ptr, n) \
5649
{ \
5750
size_t ret = (*f)(ptr, sizeof(*(ptr)), n); \

0 commit comments

Comments
 (0)