From a9b3215aeaa101d7fe16c14ce64ca4f5ca89b7e6 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 3 Feb 2015 11:49:48 +0100 Subject: WaE: variable 'kind' set but not used Change-Id: I5078e0e4df18d0aece3240dc537504c11cd623de --- vcl/source/window/dialog.cxx | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 78a95f09305b..18467af57eef 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -843,31 +843,6 @@ short Dialog::Execute() #else - MLODialogKind kind; - - switch (GetType()) - { - case WINDOW_MESSBOX: - kind = MLODialogMessage; - break; - case WINDOW_INFOBOX: - kind = MLODialogInformation; - break; - case WINDOW_WARNINGBOX: - kind = MLODialogWarning; - break; - case WINDOW_ERRORBOX: - kind = MLODialogError; - break; - case WINDOW_QUERYBOX: - kind = MLODialogQuery; - break; - default: - SAL_WARN("vcl", "Dialog::Execute: Unhandled window type %d" << GetType()); - kind = MLODialogInformation; - break; - } - // touch_ui_dialog_modal was dummied out both for Android and iOS (well, TiledLibreOffice anyway) // For Android it returned MLODialogOK always, for iOS Cancel. Let's go with OK. // MLODialogResult result = touch_ui_dialog_modal(kind, ImplGetDialogText(this).getStr()); -- cgit