diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 23:39:25 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 23:39:25 +0000 |
commit | ddaabe0cab33ca70c5ffb84665b06ef2195aef81 (patch) | |
tree | 43fb71c20183c6383294a08237ddd50bb53961fd /base/clipboard_linux.cc | |
parent | daa5b6292c3a731dbe88501712d1d11290957a00 (diff) | |
download | chromium_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.cc | 16 |
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); |