Skip to content

Commit

Permalink
Remove unreachable code in thumbhash_encoder_create (discord#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
skidder committed Aug 10, 2023
1 parent 217a9d5 commit 229fc75
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions thumbhash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ struct thumbhash_encoder_struct {
thumbhash_encoder thumbhash_encoder_create(void* buf, size_t buf_len)
{
thumbhash_encoder e = new struct thumbhash_encoder_struct();
if (!e) {
return NULL;
}
memset(e, 0, sizeof(struct thumbhash_encoder_struct));
e->dst = (uint8_t*)(buf);
e->dst_len = buf_len;
Expand Down

0 comments on commit 229fc75

Please sign in to comment.