[Libreoffice-commits] core.git: compilerplugins/clang include/store store/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 27 12:55:48 UTC 2018


 compilerplugins/clang/unusedenumconstants.readonly.results |    2 --
 include/store/types.h                                      |    1 -
 store/source/lockbyte.cxx                                  |    1 -
 3 files changed, 4 deletions(-)

New commits:
commit 4a68aec049276ae3742efd9553258cd1a62c88b6
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Nov 26 11:40:44 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Nov 27 13:55:19 2018 +0100

    remove unused enum storeAccessMode value
    
    Change-Id: I88a53e285cc3e8b6cc1c67b1e56322a918554de6
    Reviewed-on: https://gerrit.libreoffice.org/64087
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/compilerplugins/clang/unusedenumconstants.readonly.results b/compilerplugins/clang/unusedenumconstants.readonly.results
index bd262cd636cc..1adf3e14a4fc 100644
--- a/compilerplugins/clang/unusedenumconstants.readonly.results
+++ b/compilerplugins/clang/unusedenumconstants.readonly.results
@@ -412,8 +412,6 @@ include/sfx2/objsh.hxx:121
     enum SfxObjectShellFlags NODOCINFO
 include/sfx2/viewsh.hxx:101
     enum SfxViewShellFlags NO_SHOW
-include/store/types.h:65
-    enum storeAccessMode ReadCreate
 include/svl/ctloptions.hxx:64
     enum SvtCTLOptions::TextNumerals NUMERALS_HINDI
 include/svl/ctloptions.hxx:65
diff --git a/include/store/types.h b/include/store/types.h
index da2c0fea2630..d31482fd946c 100644
--- a/include/store/types.h
+++ b/include/store/types.h
@@ -62,7 +62,6 @@ extern "C" {
 enum class storeAccessMode
 {
     Create,
-    ReadCreate,
     ReadWrite,
     ReadOnly,
     FORCE_EQUAL_SIZE = SAL_MAX_ENUM
diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx
index 20740b43804a..989f25880377 100644
--- a/store/source/lockbyte.cxx
+++ b/store/source/lockbyte.cxx
@@ -199,7 +199,6 @@ struct FileHandle
         switch (eAccessMode)
         {
         case storeAccessMode::Create:
-        case storeAccessMode::ReadCreate:
             nFlags |= osl_File_OpenFlag_Create;
             SAL_FALLTHROUGH;
         case storeAccessMode::ReadWrite:


More information about the Libreoffice-commits mailing list