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

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: Fix DragController 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
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/platform/graphics/AlternateFontFamily.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/DragController.cpp
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp
index 085639885614a25df9e5404f6aa97b38a12583cb..606773f9de5d28654e5be202550c1ec55bc11880 100644
--- a/Source/core/page/DragController.cpp
+++ b/Source/core/page/DragController.cpp
@@ -92,6 +92,7 @@ static const int MaxOriginalImageArea = 1500 * 1500;
static const int LinkDragBorderInset = 2;
static const float DragImageAlpha = 0.75f;
+#if !ASSERT_DISABLED
static bool dragTypeIsValid(DragSourceAction action)
{
switch (action) {
@@ -106,6 +107,7 @@ static bool dragTypeIsValid(DragSourceAction action)
// Make sure MSVC doesn't complain that not all control paths return a value.
return false;
}
+#endif
static PlatformMouseEvent createMouseEvent(DragData* dragData)
{
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/platform/graphics/AlternateFontFamily.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698