Skip to content

Commit

Permalink
Cleanup unreferenced code
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Oct 1, 2024
1 parent 7c815fc commit 77f5f4e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
16 changes: 0 additions & 16 deletions src/ini.h
Original file line number Diff line number Diff line change
Expand Up @@ -632,22 +632,6 @@ class INIFile {
INIReader reader(filename);
return reader >> data;
}
bool generate(INIStructure const &data, bool pretty = false) const {
if (filename.empty()) {
return false;
}
INIGenerator generator(filename);
generator.prettyPrint = pretty;
return generator << data;
}
bool write(INIStructure &data, bool pretty = false) const {
if (filename.empty()) {
return false;
}
INIWriter writer(filename);
writer.prettyPrint = pretty;
return writer << data;
}
};
} // namespace mINI

Expand Down
15 changes: 0 additions & 15 deletions src/s3plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,6 @@ template <typename H> void EraseRemove(HandleContainer<H>& container, HandleIt<H
container.pop_back();
}

struct SimpleErrorModel
{
Aws::String err_msg_;

const Aws::String& GetMessage() const
{
return err_msg_;
}
};

struct SimpleError
{
int code_;
Expand All @@ -230,11 +220,6 @@ struct SimpleError
{
return std::to_string(code_) + err_msg_;
}

SimpleErrorModel GetModeledError() const
{
return {GetMessage()};
}
};

SimpleError MakeSimpleError(Aws::S3::S3Errors err_code, Aws::String&& err_msg)
Expand Down

0 comments on commit 77f5f4e

Please sign in to comment.