summaryrefslogtreecommitdiffstats
path: root/base/clipboard_linux.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 23:39:25 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 23:39:25 +0000
commitddaabe0cab33ca70c5ffb84665b06ef2195aef81 (patch)
tree43fb71c20183c6383294a08237ddd50bb53961fd /base/clipboard_linux.cc
parentdaa5b6292c3a731dbe88501712d1d11290957a00 (diff)
downloadchromium_src-ddaabe0cab33ca70c5ffb84665b06ef2195aef81.zip
chromium_src-ddaabe0cab33ca70c5ffb84665b06ef2195aef81.tar.gz
chromium_src-ddaabe0cab33ca70c5ffb84665b06ef2195aef81.tar.bz2
Removes an unused function in clipboard_linux as well as unused method
declaration. BUG=none TEST=none Review URL: http://codereview.chromium.org/159735 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/clipboard_linux.cc')
-rw-r--r--base/clipboard_linux.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/base/clipboard_linux.cc b/base/clipboard_linux.cc
index 5b49796..552ea79 100644
--- a/base/clipboard_linux.cc
+++ b/base/clipboard_linux.cc
@@ -83,22 +83,6 @@ void ClearData(GtkClipboard* clipboard,
delete map;
}
-// Frees the pointers in the given map and clears the map.
-// Does not double-free any pointers.
-void FreeTargetMap(Clipboard::TargetMap map) {
- std::set<char*> ptrs;
-
- for (Clipboard::TargetMap::iterator iter = map.begin();
- iter != map.end(); ++iter)
- ptrs.insert(iter->second.first);
-
- for (std::set<char*>::iterator iter = ptrs.begin();
- iter != ptrs.end(); ++iter)
- delete[] *iter;
-
- map.clear();
-}
-
// Called on GdkPixbuf destruction; see WriteBitmap().
void GdkPixbufFree(guchar* pixels, gpointer data) {
free(pixels);