diff options
| author | 2022-10-12 14:26:09 +0100 | |
|---|---|---|
| committer | 2022-10-12 14:26:09 +0100 | |
| commit | e4119e33f481f792980f937e2e1c9f70de5bd05f (patch) | |
| tree | b50dd87a42853472eb9d324e43f92be7ef6f9f77 /src/modules | |
| parent | Avoid file_cache in opermotd and showfile. (diff) | |
Remove some unused method arguments.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_cap.cpp | 6 | ||||
| -rw-r--r-- | src/modules/m_permchannels.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index c23f98ad5..63afcbeba 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -281,7 +281,7 @@ public: namespace { - std::string SerializeCaps(const Extensible* container, void* item, bool human) + std::string SerializeCaps(const Extensible* container, bool human) { // XXX: Cast away the const because IS_LOCAL() doesn't handle it LocalUser* user = IS_LOCAL(const_cast<User*>(static_cast<const User*>(container))); @@ -319,12 +319,12 @@ Cap::ExtItem::ExtItem(Module* mod) std::string Cap::ExtItem::ToHuman(const Extensible* container, void* item) const noexcept { - return SerializeCaps(container, item, true); + return SerializeCaps(container, true); } std::string Cap::ExtItem::ToInternal(const Extensible* container, void* item) const noexcept { - return SerializeCaps(container, item, false); + return SerializeCaps(container, false); } void Cap::ExtItem::FromInternal(Extensible* container, const std::string& value) noexcept diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index ecd653d5e..3cb35e514 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -61,7 +61,7 @@ public: // Not in a class due to circular dependency hell. static std::string permchannelsconf; -static bool WriteDatabase(PermChannel& permchanmode, Module* mod, bool save_listmodes) +static bool WriteDatabase(PermChannel& permchanmode, bool save_listmodes) { /* * We need to perform an atomic write so as not to fuck things up. @@ -283,7 +283,7 @@ public: bool Tick() override { if (dirty) - WriteDatabase(p, this, save_listmodes); + WriteDatabase(p, save_listmodes); dirty = false; return true; } |
