This code is terrible and should not be there. (#496)

This commit is contained in:
Daniel Lemire 2020-02-13 07:38:11 -05:00 committed by GitHub
parent a8903d9765
commit 083569fca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -21,8 +21,6 @@ inline char *allocate_padded_buffer(size_t length) noexcept {
char *padded_buffer = aligned_malloc_char(64, totalpaddedlength);
#ifndef NDEBUG
if (padded_buffer == nullptr) {
errno = EINVAL;
perror("simdjson::allocate_padded_buffer() aligned_malloc_char() failed");
return nullptr;
}
#endif // NDEBUG