Skip to content

Commit

Permalink
Remove write return value as it is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
kimci86 committed Mar 16, 2024
1 parent 500a736 commit 83fc5de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Zip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ auto read(std::istream& is, std::size_t length) -> std::string
}

template <typename T>
auto write(std::ostream& os, const T& x) -> std::ostream&
void write(std::ostream& os, const T& x)
{
// We make no assumption about platform endianness.
for (auto index = std::size_t{}; index < sizeof(T); index++)
os.put(lsb(x >> (8 * index)));

return os;
}

enum class Signature : std::uint32_t
Expand Down

0 comments on commit 83fc5de

Please sign in to comment.