IRCClient: Remove unused dump() logic
A 'FIXME' asked for this to be removed, so I did.
This commit is contained in:
parent
8498a5678d
commit
83b85e5578
Notes:
sideshowbarker
2024-07-19 02:44:02 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/83b85e55788 Pull-request: https://github.com/SerenityOS/serenity/pull/3464
6 changed files with 1 additions and 25 deletions
|
@ -77,14 +77,6 @@ void IRCChannel::add_message(const String& text, Color color)
|
|||
window().did_add_message();
|
||||
}
|
||||
|
||||
void IRCChannel::dump() const
|
||||
{
|
||||
printf("IRCChannel{%p}: %s\n", this, m_name.characters());
|
||||
for (auto& member : m_members)
|
||||
printf(" (%c)%s\n", member.prefix ? member.prefix : ' ', member.name.characters());
|
||||
log().dump();
|
||||
}
|
||||
|
||||
void IRCChannel::say(const String& text)
|
||||
{
|
||||
m_client.send_privmsg(m_name, text);
|
||||
|
|
|
@ -52,8 +52,6 @@ public:
|
|||
void add_message(char prefix, const String& name, const String& text, Color = Color::Black);
|
||||
void add_message(const String& text, Color = Color::Black);
|
||||
|
||||
void dump() const;
|
||||
|
||||
void say(const String&);
|
||||
|
||||
const IRCLogBuffer& log() const { return *m_log; }
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
#include <LibWeb/DOM/DocumentFragment.h>
|
||||
#include <LibWeb/DOM/DocumentType.h>
|
||||
#include <LibWeb/DOM/ElementFactory.h>
|
||||
#include <LibWeb/HTML/HTMLBodyElement.h>
|
||||
#include <LibWeb/DOM/Text.h>
|
||||
#include <LibWeb/HTML/HTMLBodyElement.h>
|
||||
#include <time.h>
|
||||
|
||||
NonnullRefPtr<IRCLogBuffer> IRCLogBuffer::create()
|
||||
|
@ -96,8 +96,3 @@ void IRCLogBuffer::add_message(const String& text, Color color)
|
|||
m_container_element->append_child(wrapper);
|
||||
m_document->force_layout();
|
||||
}
|
||||
|
||||
void IRCLogBuffer::dump() const
|
||||
{
|
||||
// FIXME: Remove me?
|
||||
}
|
||||
|
|
|
@ -47,7 +47,6 @@ public:
|
|||
|
||||
void add_message(char prefix, const String& name, const String& text, Color = Color::Black);
|
||||
void add_message(const String& text, Color = Color::Black);
|
||||
void dump() const;
|
||||
|
||||
const Web::DOM::Document& document() const { return *m_document; }
|
||||
Web::DOM::Document& document() { return *m_document; }
|
||||
|
|
|
@ -46,12 +46,6 @@ NonnullRefPtr<IRCQuery> IRCQuery::create(IRCClient& client, const String& name)
|
|||
return adopt(*new IRCQuery(client, name));
|
||||
}
|
||||
|
||||
void IRCQuery::dump() const
|
||||
{
|
||||
printf("IRCQuery{%p}: %s\n", this, m_name.characters());
|
||||
log().dump();
|
||||
}
|
||||
|
||||
void IRCQuery::add_message(char prefix, const String& name, const String& text, Color color)
|
||||
{
|
||||
log().add_message(prefix, name, text, color);
|
||||
|
|
|
@ -45,8 +45,6 @@ public:
|
|||
void add_message(char prefix, const String& name, const String& text, Color = Color::Black);
|
||||
void add_message(const String& text, Color = Color::Black);
|
||||
|
||||
void dump() const;
|
||||
|
||||
const IRCLogBuffer& log() const { return *m_log; }
|
||||
IRCLogBuffer& log() { return *m_log; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue