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

Unified Diff: chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc

Issue 67923002: Fixes for -Wunused-function on Linux, Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for realz Created 7 years, 1 month 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
Index: chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc b/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
index 84a78729323e6f85e648fc6b7fdb7b977ac60985..1f47f3136edaf20e1ba9efb1a9c27a8204e7cf43 100644
--- a/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
+++ b/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
@@ -68,16 +68,6 @@ size_t GetUTF8Offset(const string16& text, size_t text_offset) {
return UTF16ToUTF8(text.substr(0, text_offset)).size();
}
-// A helper method for determining a valid drag operation given the allowed
-// operation. We prefer copy over link.
-int CopyOrLinkDragOperation(int drag_operation) {
- if (drag_operation & ui::DragDropTypes::DRAG_COPY)
- return ui::DragDropTypes::DRAG_COPY;
- if (drag_operation & ui::DragDropTypes::DRAG_LINK)
- return ui::DragDropTypes::DRAG_LINK;
- return ui::DragDropTypes::DRAG_NONE;
-}
-
// Stores GTK+-specific state so it can be restored after switching tabs.
struct ViewState {
explicit ViewState(const OmniboxViewGtk::CharRange& selection_range)
« no previous file with comments | « chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc ('k') | chrome/browser/ui/views/frame/browser_view_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698