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

Unified Diff: components/enhanced_bookmarks/enhanced_bookmark_utils.cc

Issue 1067703004: Clean up enhanced_bookmark_utils.h/cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « components/enhanced_bookmarks/enhanced_bookmark_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/enhanced_bookmarks/enhanced_bookmark_utils.cc
diff --git a/components/enhanced_bookmarks/enhanced_bookmark_utils.cc b/components/enhanced_bookmarks/enhanced_bookmark_utils.cc
index 28c5bc8de1dd5e8fa16d2104f12e4dd3d956a8ea..40997dd48cdfd3c020675c83732bb98cbdd97e96 100644
--- a/components/enhanced_bookmarks/enhanced_bookmark_utils.cc
+++ b/components/enhanced_bookmarks/enhanced_bookmark_utils.cc
@@ -34,14 +34,6 @@ class BookmarkNameComparator : public std::binary_function<const BookmarkNode*,
icu::Collator* collator_;
};
-void SortBookmarksByName(std::vector<const BookmarkNode*>& nodes) {
- UErrorCode error = U_ZERO_ERROR;
- scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(error));
- if (U_FAILURE(error))
- collator.reset(NULL);
- std::sort(nodes.begin(), nodes.end(), BookmarkNameComparator(collator.get()));
-}
-
std::vector<const BookmarkNode*> PrimaryPermanentNodes(BookmarkModel* model) {
DCHECK(model->loaded());
std::vector<const BookmarkNode*> nodes;
« no previous file with comments | « components/enhanced_bookmarks/enhanced_bookmark_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698