Skip to content

Commit

Permalink
refactor: remove useless codes
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Dec 14, 2024
1 parent 671b478 commit e02e50d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ll/api/mod/Mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ struct Mod::Impl {
std::filesystem::path dataDir;
std::filesystem::path configDir;
std::filesystem::path langDir;

~Impl() { io::LoggerRegistry::getInstance().erase(manifest.name); }
};

Mod::Mod(Manifest manifest) : mImpl(std::make_unique<Impl>()) {
Expand Down
1 change: 0 additions & 1 deletion src/ll/api/utils/StringUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ intToHexStr(T value, bool upperCase = true, bool no0x = true, bool noLeadingZero
}

[[nodiscard]] constexpr std::string strToHexStr(std::string_view value, bool upperCase = false, bool addSpace = false) {
constexpr char hexStr[2][17] = {"0123456789abcdef", "0123456789ABCDEF"};
std::string hex;
hex.reserve(value.size() * (addSpace ? 3 : 2));
for (uchar x : value) {
Expand Down

0 comments on commit e02e50d

Please sign in to comment.