Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3640)

Unified Diff: base/clipboard_linux.cc

Issue 159735: Removes an unused function in clipboard_linux as well as unused method... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/clipboard.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/clipboard_linux.cc
===================================================================
--- base/clipboard_linux.cc (revision 22158)
+++ base/clipboard_linux.cc (working copy)
@@ -83,22 +83,6 @@
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);
« no previous file with comments | « base/clipboard.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698