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

Unified Diff: Source/core/page/DragController.cpp

Issue 48523009: Fix unused functions warnings on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
Index: Source/core/page/DragController.cpp
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp
index 085639885614a25df9e5404f6aa97b38a12583cb..cd72b05e4c4fa8b0f1091e015eb72f62aa7a1ef6 100644
--- a/Source/core/page/DragController.cpp
+++ b/Source/core/page/DragController.cpp
@@ -92,21 +92,6 @@ static const int MaxOriginalImageArea = 1500 * 1500;
static const int LinkDragBorderInset = 2;
static const float DragImageAlpha = 0.75f;
-static bool dragTypeIsValid(DragSourceAction action)
-{
- switch (action) {
- case DragSourceActionDHTML:
- case DragSourceActionImage:
- case DragSourceActionLink:
- case DragSourceActionSelection:
- return true;
- case DragSourceActionNone:
- return false;
- }
- // Make sure MSVC doesn't complain that not all control paths return a value.
- return false;
-}
-
static PlatformMouseEvent createMouseEvent(DragData* dragData)
{
bool shiftKey, ctrlKey, altKey, metaKey;

Powered by Google App Engine
This is Rietveld 408576698