Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Remove duplicate function definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Oct 26, 2023
1 parent 330d536 commit 935e839
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/storage/tiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,20 +339,6 @@ tiff_destroy(struct Storage*);
void
tiff_reserve_image_shape(struct Storage*, const struct ImageShape* shape);

size_t
bytes_of_type(const enum SampleType type)
{
if (type >= SampleTypeCount)
throw std::runtime_error("Invalid pixel type");

const size_t table[] = { 1, 2, 1, 2, 4, 2, 2, 2 };
CHECK(countof(table) == SampleTypeCount);

return table[type];
Error:
return 0;
}

StringSection::StringSection()
: offset(0)
, capacity(0)
Expand Down

0 comments on commit 935e839

Please sign in to comment.