Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 605ea63164fcc2ab7bfcf6708ce12dada440908a..eccc2c96c6969f3bb364b998532f58091684dd81 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -1131,20 +1131,6 @@ String Document::defaultCharset() const |
return String(); |
} |
-void Document::setCharset(const String& charset) |
-{ |
- UseCounter::countDeprecation(*this, UseCounter::DocumentSetCharset); |
- if (DocumentLoader* documentLoader = loader()) |
- documentLoader->setUserChosenEncoding(charset); |
- WTF::TextEncoding encoding(charset); |
- // In case the encoding didn't exist, we keep the old one (helps some sites specifying invalid encodings). |
- if (!encoding.isValid()) |
- return; |
- DocumentEncodingData newEncodingData = m_encodingData; |
- newEncodingData.setEncoding(encoding); |
- setEncodingData(newEncodingData); |
-} |
- |
void Document::setContentLanguage(const AtomicString& language) |
{ |
if (m_contentLanguage == language) |