Skip to content

Commit

Permalink
Remove unused(and wrong) io macro (#4122)
Browse files Browse the repository at this point in the history
Summary:
`READSTRING` is not used and also the function's meaning is actually WRITESTRING, just remove it

Pull Request resolved: #4122

Reviewed By: junjieqi, pankajsingh88

Differential Revision: D68043967

Pulled By: mnorris11

fbshipit-source-id: e2b5a7c4d7769315c6f91ba1bc0a921e7ce7e1a9
  • Loading branch information
chasingegg authored and facebook-github-bot committed Jan 13, 2025
1 parent 3d0ac32 commit 88676b8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions faiss/impl/io_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@
READANDCHECK((vec).data(), size); \
}

#define READSTRING(s) \
{ \
size_t size = (s).size(); \
WRITEANDCHECK(&size, 1); \
WRITEANDCHECK((s).c_str(), size); \
}

#define WRITEANDCHECK(ptr, n) \
{ \
size_t ret = (*f)(ptr, sizeof(*(ptr)), n); \
Expand Down

0 comments on commit 88676b8

Please sign in to comment.