Parcourir la source

IRCClient: Remove unused dump() logic

A 'FIXME' asked for this to be removed, so I did.
Ben Wiederhake il y a 4 ans
Parent
commit
83b85e5578

+ 0 - 8
Applications/IRCClient/IRCChannel.cpp

@@ -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);

+ 0 - 2
Applications/IRCClient/IRCChannel.h

@@ -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; }

+ 1 - 6
Applications/IRCClient/IRCLogBuffer.cpp

@@ -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?
-}

+ 0 - 1
Applications/IRCClient/IRCLogBuffer.h

@@ -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; }

+ 0 - 6
Applications/IRCClient/IRCQuery.cpp

@@ -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);

+ 0 - 2
Applications/IRCClient/IRCQuery.h

@@ -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; }