[Libreoffice-commits] core.git: forms/source framework/inc framework/source idlc/inc include/rsc include/sfx2 sot/source

Noel Grandin noel at peralex.com
Fri Aug 12 06:54:03 UTC 2016


 forms/source/component/DatabaseForm.cxx                       |    2 -
 forms/source/xforms/submission/submission.hxx                 |    4 --
 framework/inc/uielement/toolbarmanager.hxx                    |    4 --
 framework/inc/xml/acceleratorconfigurationreader.hxx          |    7 ---
 framework/source/inc/loadenv/loadenvexception.hxx             |   14 -------
 framework/source/inc/loadenv/targethelper.hxx                 |    1 
 framework/source/uiconfiguration/windowstateconfiguration.cxx |    8 ----
 idlc/inc/idlctypes.hxx                                        |    1 
 include/rsc/rsc-vcl-shared-types.hxx                          |    3 -
 include/sfx2/filedlghelper.hxx                                |    8 ----
 include/sfx2/frmdescr.hxx                                     |    7 ---
 include/sfx2/mailmodelapi.hxx                                 |   15 -------
 include/sfx2/msg.hxx                                          |    1 
 include/sfx2/objsh.hxx                                        |    2 -
 include/sfx2/shell.hxx                                        |   20 ----------
 sot/source/sdstor/stgelem.hxx                                 |    7 ---
 sot/source/sdstor/stgio.hxx                                   |    1 
 17 files changed, 2 insertions(+), 103 deletions(-)

New commits:
commit 8806a86c9d1ba63259ea79dd1c955ef970ab1989
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Aug 11 15:30:19 2016 +0200

    loplugin:unusedenumconstants in forms..sot
    
    Change-Id: Ic445e1bdd012c32ef7d84aec9df908467c3296a7
    Reviewed-on: https://gerrit.libreoffice.org/28055
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index c43fd3a..6954b5f 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -90,9 +90,7 @@ namespace data {
 enum DatabaseCursorType
 {
     DatabaseCursorType_FORWARD = 0,
-    DatabaseCursorType_SNAPSHOT = 1,
     DatabaseCursorType_KEYSET = 2,
-    DatabaseCursorType_DYNAMIC = 3,
     DatabaseCursorType_MAKE_FIXED_SIZE = SAL_MAX_ENUM
 };
 
diff --git a/forms/source/xforms/submission/submission.hxx b/forms/source/xforms/submission/submission.hxx
index 927c0ab..bfdb092 100644
--- a/forms/source/xforms/submission/submission.hxx
+++ b/forms/source/xforms/submission/submission.hxx
@@ -120,10 +120,6 @@ protected:
 public:
     enum SubmissionResult {
         SUCCESS,
-        INVALID_METHOD,
-        INVALID_URL,
-        INVALID_ENCODING,
-        E_TRANSMISSION,
         UNKNOWN_ERROR
     };
 
diff --git a/framework/inc/uielement/toolbarmanager.hxx b/framework/inc/uielement/toolbarmanager.hxx
index 692652e..0e2d89c 100644
--- a/framework/inc/uielement/toolbarmanager.hxx
+++ b/framework/inc/uielement/toolbarmanager.hxx
@@ -102,9 +102,7 @@ class ToolBarManager : public ToolbarManager_Base
         {
             EXEC_CMD_CLOSETOOLBAR,
             EXEC_CMD_DOCKTOOLBAR,
-            EXEC_CMD_DOCKALLTOOLBARS,
-            EXEC_CMD_NONE,
-            EXEC_CMD_COUNT
+            EXEC_CMD_DOCKALLTOOLBARS
         };
 
         struct ExecuteInfo
diff --git a/framework/inc/xml/acceleratorconfigurationreader.hxx b/framework/inc/xml/acceleratorconfigurationreader.hxx
index 90365e5..55605bc 100644
--- a/framework/inc/xml/acceleratorconfigurationreader.hxx
+++ b/framework/inc/xml/acceleratorconfigurationreader.hxx
@@ -60,13 +60,6 @@ class AcceleratorConfigurationReader : public ::cppu::WeakImplHelper< css::xml::
             E_ATTRIBUTE_URL
         };
 
-        /** @short  some namespace defines */
-        enum EAcceleratorXMLNamespace
-        {
-            E_NAMESPACE_ACCEL,
-            E_NAMESPACE_XLINK
-        };
-
     // member
 
     private:
diff --git a/framework/source/inc/loadenv/loadenvexception.hxx b/framework/source/inc/loadenv/loadenvexception.hxx
index 81dba45..fedf954 100644
--- a/framework/source/inc/loadenv/loadenvexception.hxx
+++ b/framework/source/inc/loadenv/loadenvexception.hxx
@@ -45,14 +45,6 @@ class LoadEnvException
             /** @short  The specified URL/Stream/etcpp. can not be handled by a LoadEnv instance. */
             ID_UNSUPPORTED_CONTENT,
 
-            /** @short  It was not possible to get access to global filter configuration.
-                @descr  Might some necessary services could not be created. */
-            ID_NO_CONFIG_ACCESS,
-
-            /** @short  Some data obtained from the filter configuration seems to incorrect.
-                @descr  Might a filter-type relationship seem to be damaged. */
-            ID_INVALID_FILTER_CONFIG,
-
             /** @short  indicates a corrupted media descriptor.
                 @descr  Some parts are required - some other ones are optional. Such exception
                         should be thrown, if a required item does not exists. */
@@ -68,12 +60,6 @@ class LoadEnvException
             /** @short  indicates a failed search for the right target frame. */
             ID_NO_TARGET_FOUND,
 
-            /** @short  An already existing document was found inside a target frame.
-                        But its controller could not be suspended successfully. Thats
-                        why the new load request was cancelled. The document could not
-                        be replaced. */
-            ID_COULD_NOT_SUSPEND_CONTROLLER,
-
             /** @short  TODO */
             ID_COULD_NOT_REACTIVATE_CONTROLLER,
 
diff --git a/framework/source/inc/loadenv/targethelper.hxx b/framework/source/inc/loadenv/targethelper.hxx
index 9317619..615084e 100644
--- a/framework/source/inc/loadenv/targethelper.hxx
+++ b/framework/source/inc/loadenv/targethelper.hxx
@@ -48,7 +48,6 @@ class TargetHelper
             E_BLANK         ,
             E_DEFAULT       ,
             E_BEAMER        ,
-            E_HELPAGENT     ,
             E_HELPTASK
         };
 
diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx
index 72b7c84..966bdd7 100644
--- a/framework/source/uiconfiguration/windowstateconfiguration.cxx
+++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx
@@ -145,14 +145,6 @@ class ConfigurationAccess_WindowState : public  ::cppu::WeakImplHelper< XNameCon
     protected:
         enum WindowStateMask
         {
-            WINDOWSTATE_MASK_LOCKED         = 1,
-            WINDOWSTATE_MASK_DOCKED         = 2,
-            WINDOWSTATE_MASK_VISIBLE        = 4,
-            WINDOWSTATE_MASK_CONTEXT        = 8,
-            WINDOWSTATE_MASK_HIDEFROMMENU   = 16,
-            WINDOWSTATE_MASK_NOCLOSE        = 32,
-            WINDOWSTATE_MASK_SOFTCLOSE      = 64,
-            WINDOWSTATE_MASK_CONTEXTACTIVE  = 128,
             WINDOWSTATE_MASK_DOCKINGAREA    = 256,
             WINDOWSTATE_MASK_POS            = 512,
             WINDOWSTATE_MASK_SIZE           = 1024,
diff --git a/idlc/inc/idlctypes.hxx b/idlc/inc/idlctypes.hxx
index 36903ce..ec8d004 100644
--- a/idlc/inc/idlctypes.hxx
+++ b/idlc/inc/idlctypes.hxx
@@ -98,7 +98,6 @@ enum ParseState
     PS_SingletonSqSeen,     // '{' seen for singleton
     PS_SingletonQsSeen,     // '}' seen for singleton
     PS_SingletonBodySeen,   // Seen complete singleton body
-    PS_SingletonMemberSeen, // Seen a singleton member
 
     PS_ModuleSeen,          // Seen a MODULE keyword
     PS_ModuleIDSeen,        // Seen the module ID
diff --git a/include/rsc/rsc-vcl-shared-types.hxx b/include/rsc/rsc-vcl-shared-types.hxx
index 80b76e5..3603cde 100644
--- a/include/rsc/rsc-vcl-shared-types.hxx
+++ b/include/rsc/rsc-vcl-shared-types.hxx
@@ -64,8 +64,7 @@ enum class ToolBoxItemBits
     REPEAT              = 0x0040,
     DROPDOWNONLY        = 0x00a0, // 0x0080 | DROPDOWN
     TEXT_ONLY           = 0x0100,
-    ICON_ONLY           = 0x0200,
-    TEXTICON            = 0x0300 // TEXT_ONLY | ICON_ONLY
+    ICON_ONLY           = 0x0200
 };
 namespace o3tl
 {
diff --git a/include/sfx2/filedlghelper.hxx b/include/sfx2/filedlghelper.hxx
index 9c7e3b3..c443638 100644
--- a/include/sfx2/filedlghelper.hxx
+++ b/include/sfx2/filedlghelper.hxx
@@ -84,14 +84,6 @@ public:
     {
         UNKNOWN_CONTEXT,                // unknown context
         SW_INSERT_GRAPHIC,              // insert graphic in writer
-        SW_INSERT_SOUND,                // insert sound in writer
-        SW_INSERT_VIDEO,                // insert video in writer
-        SC_INSERT_GRAPHIC,              // insert graphic in calc
-        SC_INSERT_SOUND,                // insert sound in calc
-        SC_INSERT_VIDEO,                // insert video in calc
-        SD_INSERT_GRAPHIC,              // insert graphic in draw
-        SD_INSERT_SOUND,                // insert sound in draw
-        SD_INSERT_VIDEO,                // insert video in draw
         SD_EXPORT,                      // export in draw
         SI_EXPORT,                      // export in impress
         SW_EXPORT                       // export in writer
diff --git a/include/sfx2/frmdescr.hxx b/include/sfx2/frmdescr.hxx
index 8d6f462..1a792bf 100644
--- a/include/sfx2/frmdescr.hxx
+++ b/include/sfx2/frmdescr.hxx
@@ -50,13 +50,6 @@ enum ScrollingMode
     ScrollingAuto
 };
 
-enum SizeSelector
-{
-    SIZE_ABS,
-    SIZE_PERCENT,
-    SIZE_REL
-};
-
 #define SPACING_NOT_SET     -1L
 #define SIZE_NOT_SET        -1L
 
diff --git a/include/sfx2/mailmodelapi.hxx b/include/sfx2/mailmodelapi.hxx
index 7d048b7..bb3d360 100644
--- a/include/sfx2/mailmodelapi.hxx
+++ b/include/sfx2/mailmodelapi.hxx
@@ -36,15 +36,6 @@ typedef ::std::vector< OUString > AddressList_Impl;
 class SFX2_DLLPUBLIC SfxMailModel
 {
 public:
-    enum MailPriority
-    {
-        PRIO_HIGHEST,
-        PRIO_HIGH,
-        PRIO_NORMAL,
-        PRIO_LOW,
-        PRIO_LOWEST
-    };
-
     enum AddressRole
     {
         ROLE_TO,
@@ -52,12 +43,6 @@ public:
         ROLE_BCC
     };
 
-    enum MailDocType
-    {
-        TYPE_SELF,
-        TYPE_ASPDF
-    };
-
 protected:
     enum SaveResult
     {
diff --git a/include/sfx2/msg.hxx b/include/sfx2/msg.hxx
index ab7c6bd..c6c101b 100644
--- a/include/sfx2/msg.hxx
+++ b/include/sfx2/msg.hxx
@@ -38,7 +38,6 @@ enum class SfxSlotMode {
     RECORDPERITEM   =    0x0200L, // each item, one statement
     RECORDPERSET    =    0x0400L, // The whole Set is a Statement, default
     RECORDABSOLUTE  = 0x1000000L, // Recording with absolute Target
-    STANDARD        =   0x00400L, // RECORDPERSET;
 
     METHOD          =    0x4000L,
 
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 3c7f9e8..b4fecfe 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -124,7 +124,6 @@ enum class SfxObjectShellFlags
     DONTCLOSE       = 0x10L,
     NODOCINFO       = 0x20L,
     STD_NORMAL      = HASOPENDOC,
-    STD_SPECIAL     = DONTLOADFILTERS,
     UNDEFINED       = 0xf000000
 };
 namespace o3tl
@@ -180,7 +179,6 @@ enum class SfxObjectCreateMode
     STANDARD,
     PREVIEW,
     ORGANIZER,
-    PLUGIN,
     INTERNAL
 };
 
diff --git a/include/sfx2/shell.hxx b/include/sfx2/shell.hxx
index 58440b2..ed7b55b 100644
--- a/include/sfx2/shell.hxx
+++ b/include/sfx2/shell.hxx
@@ -68,28 +68,9 @@ enum SfxInterfaceId
     SFX_INTERFACE_NONE,
     SFX_INTERFACE_SFXAPP,
     SFX_INTERFACE_SFXDOCSH,
-    SFX_INTERFACE_SFXIPFRM,
     SFX_INTERFACE_SFXVIEWSH,
     SFX_INTERFACE_SFXVIEWFRM,
-    SFX_INTERFACE_SFXPLUGINFRM,
-    SFX_INTERFACE_SFXPLUGINOBJ,
-    SFX_INTERFACE_SFXPLUGINVIEWSH,
-    SFX_INTERFACE_SFXFRAMESETOBJ,
-    SFX_INTERFACE_SFXFRAMESETVIEWSH,
-    SFX_INTERFACE_SFXINTERNALFRM,
-    SFX_INTERFACE_SFXCOMPONENTDOCSH,
-    SFX_INTERFACE_SFXGENERICOBJ,
-    SFX_INTERFACE_SFXGENERICVIEWSH,
-    SFX_INTERFACE_SFXEXPLOBJ,
-    SFX_INTERFACE_SFXEXPLVIEWSH,
-    SFX_INTERFACE_SFXPLUGINVIEWSHDYNAMIC,
-    SFX_INTERFACE_SFXEXTERNALVIEWFRM,
     SFX_INTERFACE_SFXMODULE,
-    SFX_INTERFACE_SFXFRAMESETVIEW,
-    SFX_INTERFACE_SFXFRAMESETSOURCEVIEW,
-    SFX_INTERFACE_SFXHELP_DOCSH,
-    SFX_INTERFACE_SFXHELP_VIEWSH,
-    SFX_INTERFACE_SFXTASK,
     SFX_INTERFACE_OFA_START         =  100,
     SFX_INTERFACE_OFA_END           =  100,
     SFX_INTERFACE_SC_START          =  150,
@@ -110,7 +91,6 @@ enum SfxInterfaceId
     SFX_INTERFACE_IDE_END           =  409,
     //-if one is still needed
     SFX_INTERFACE_APP               =  SFX_INTERFACE_SW_START,
-    SFX_INTERFACE_LIB               =  450
 };
 
 
diff --git a/sot/source/sdstor/stgelem.hxx b/sot/source/sdstor/stgelem.hxx
index 4ae4731..610c912 100644
--- a/sot/source/sdstor/stgelem.hxx
+++ b/sot/source/sdstor/stgelem.hxx
@@ -86,8 +86,6 @@ enum StgEntryType {                     // dir entry types:
     STG_EMPTY     = 0,
     STG_STORAGE   = 1,
     STG_STREAM    = 2,
-    STG_LOCKBYTES = 3,
-    STG_PROPERTY  = 4,
     STG_ROOT      = 5
 };
 
@@ -98,11 +96,6 @@ enum StgEntryRef {                      // reference blocks:
     STG_DATA      = 3                   // data start
 };
 
-enum StgEntryTime {                     // time codes:
-    STG_MODIFIED  = 0,                  // last modification
-    STG_ACCESSED  = 1                   // last access
-};
-
 #define STGENTRY_SIZE 128
 
 //StructuredStorageDirectoryEntry
diff --git a/sot/source/sdstor/stgio.hxx b/sot/source/sdstor/stgio.hxx
index 40a6682..64e4df8 100644
--- a/sot/source/sdstor/stgio.hxx
+++ b/sot/source/sdstor/stgio.hxx
@@ -34,7 +34,6 @@ enum FAT_ERROR
     FAT_OK,
     FAT_WRONGLENGTH,
     FAT_UNREFCHAIN,
-    FAT_OVERWRITE,
     FAT_OUTOFBOUNDS,
 
     FAT_INMEMORYERROR,


More information about the Libreoffice-commits mailing list