Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik committed Nov 3, 2024
1 parent bbf6f15 commit add3950
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
5 changes: 1 addition & 4 deletions include/xsk/utils/file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ namespace xsk::utils

struct file
{
struct error : public std::runtime_error
{
explicit error(std::string const& message) : std::runtime_error(message) {}
};
using error = std::runtime_error;

static auto read(std::filesystem::path const& file) -> std::vector<u8>;
static auto save(std::filesystem::path const& file, std::vector<u8> const& data) -> void;
Expand Down
6 changes: 1 addition & 5 deletions include/xsk/utils/reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ namespace xsk::utils
struct reader
{
using ptr = std::unique_ptr<reader>;

struct error : public std::runtime_error
{
explicit error(std::string const& message) : std::runtime_error(message) {}
};
using error = std::runtime_error;

private:
u8 const* data_;
Expand Down
6 changes: 1 addition & 5 deletions include/xsk/utils/writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ namespace xsk::utils
struct writer
{
using ptr = std::unique_ptr<writer>;

struct error : public std::runtime_error
{
explicit error(std::string const& message) : std::runtime_error(message) {}
};
using error = std::runtime_error;

private:
static constexpr u32 default_size = 0x100000;
Expand Down
5 changes: 1 addition & 4 deletions include/xsk/utils/zlib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ namespace xsk::utils

struct zlib
{
struct error : public std::runtime_error
{
explicit error(std::string const& message) : std::runtime_error(message) {}
};
using error = std::runtime_error;

static auto compress(std::vector<u8> const& data) -> std::vector<u8>;
static auto decompress(std::vector<u8> const& data, u32 length) -> std::vector<u8>;
Expand Down

0 comments on commit add3950

Please sign in to comment.