Skip to content

Commit

Permalink
refactor: remove useless impl in Statitics
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Feb 28, 2024
1 parent 0a764bd commit 2401683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
9 changes: 2 additions & 7 deletions src/ll/core/tweak/Statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,12 @@ LL_INSTANCE_HOOK(
}
} // namespace statitics

struct Statitics::Impl {
ll::memory::HookRegistrar<statitics::PropertiesSettingsConstructor> r;
};

void Statitics::call(bool enable) {
if (enable) {
if (!impl) impl = std::make_unique<Impl>();
statitics::PropertiesSettingsConstructor::hook();
statitics::initStatitics();

} else {
impl.reset();
statitics::PropertiesSettingsConstructor::unhook();
}
};

Expand Down
3 changes: 0 additions & 3 deletions src/ll/core/tweak/Statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
namespace ll {

struct Statitics {
struct Impl;
std::unique_ptr<Impl> impl;

void call(bool);
Statitics();
~Statitics();
Expand Down

0 comments on commit 2401683

Please sign in to comment.