Remove unused methods from WebClipboardImpl.
This also re-arranges the methods according to their definition in WebKit::WebClipboard.
BUG=
Review URL: https://codereview.chromium.org/25729002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231036 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/webclipboard_impl.cc b/content/renderer/webclipboard_impl.cc
index c7f63be5..0a73576a 100644
--- a/content/renderer/webclipboard_impl.cc
+++ b/content/renderer/webclipboard_impl.cc
@@ -42,10 +42,6 @@
WebClipboardImpl::~WebClipboardImpl() {
}
-uint64 WebClipboardImpl::getSequenceNumber() {
- return sequenceNumber(BufferStandard);
-}
-
uint64 WebClipboardImpl::sequenceNumber(Buffer buffer) {
ui::ClipboardType clipboard_type;
if (!ConvertBufferType(buffer, &clipboard_type))
@@ -155,6 +151,11 @@
return data;
}
+void WebClipboardImpl::writePlainText(const WebString& plain_text) {
+ ScopedClipboardWriterGlue scw(client_);
+ scw.WriteText(plain_text);
+}
+
void WebClipboardImpl::writeHTML(
const WebString& html_text, const WebURL& source_url,
const WebString& plain_text, bool write_smart_paste) {
@@ -166,19 +167,6 @@
scw.WriteWebSmartPaste();
}
-void WebClipboardImpl::writePlainText(const WebString& plain_text) {
- ScopedClipboardWriterGlue scw(client_);
- scw.WriteText(plain_text);
-}
-
-void WebClipboardImpl::writeURL(const WebURL& url, const WebString& title) {
- ScopedClipboardWriterGlue scw(client_);
-
- scw.WriteBookmark(title, url.spec());
- scw.WriteHTML(UTF8ToUTF16(URLToMarkup(url, title)), std::string());
- scw.WriteText(UTF8ToUTF16(std::string(url.spec())));
-}
-
void WebClipboardImpl::writeImage(const WebImage& image,
const WebURL& url,
const WebString& title) {