Remove DocumentWriter::setDecoder as a grep of WebKit shows no callers
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Sep 2011 21:31:36 +0000 (21:31 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Sep 2011 21:31:36 +0000 (21:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=67803

Reviewed by Adam Barth.

Smells like dead code.

* loader/DocumentWriter.cpp:
* loader/DocumentWriter.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@94800 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/loader/DocumentWriter.cpp
Source/WebCore/loader/DocumentWriter.h

index ef86839..1c5fb47 100644 (file)
@@ -1,3 +1,15 @@
+2011-09-08  Eric Seidel  <eric@webkit.org>
+
+        Remove DocumentWriter::setDecoder as a grep of WebKit shows no callers
+        https://bugs.webkit.org/show_bug.cgi?id=67803
+
+        Reviewed by Adam Barth.
+
+        Smells like dead code.
+
+        * loader/DocumentWriter.cpp:
+        * loader/DocumentWriter.h:
+
 2011-09-08  Shinya Kawanaka  <shinyak@google.com>
 
         Crashes in WebCore::ReplaceSelectionCommand::doApply
index 381ada0..150c5f5 100644 (file)
@@ -253,11 +253,6 @@ void DocumentWriter::setEncoding(const String& name, bool userChosen)
     m_encodingWasChosenByUser = userChosen;
 }
 
-void DocumentWriter::setDecoder(TextResourceDecoder* decoder)
-{
-    m_decoder = decoder;
-}
-
 String DocumentWriter::deprecatedFrameEncoding() const
 {
     return m_frame->document()->url().isEmpty() ? m_encoding : encoding();
index 42fa84f..e99386c 100644 (file)
@@ -68,8 +68,6 @@ public:
     const String& mimeType() const { return m_mimeType; }
     void setMIMEType(const String& type) { m_mimeType = type; }
 
-    void setDecoder(TextResourceDecoder*);
-
     // Exposed for DocumentParser::appendBytes.
     TextResourceDecoder* createDecoderIfNeeded();
     void reportDataReceived();