diff options
-rwxr-xr-x | compilerplugins/clang/unusedenumconstants.py | 1 | ||||
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.py b/compilerplugins/clang/unusedenumconstants.py index 5a71bf4ec275..20686d0ec157 100755 --- a/compilerplugins/clang/unusedenumconstants.py +++ b/compilerplugins/clang/unusedenumconstants.py @@ -163,6 +163,7 @@ for d in definitionSet: "vcl/inc/unx/XIM.h", "vcl/unx/gtk/xid_fullscreen_on_all_monitors.c", "vcl/unx/gtk/salnativewidgets-gtk.cxx", + "sc/inc/callform.hxx", # ParamType ]): continue diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 1cffa3010ea7..b55e49ab7178 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -297,7 +297,6 @@ inline void deleteTestDirectory( const ::rtl::OUString& basename, const ::rtl::O /** Check for the file and directory access right. */ enum class oslCheckMode { - Exist, OpenAccess, ReadAccess, WriteAccess @@ -345,10 +344,6 @@ inline bool checkDirectory( const ::rtl::OUString & str, oslCheckMode nCheckMode if ( ( ::osl::FileBase::E_NOENT != rc ) && ( ::osl::FileBase::E_ACCES != rc ) ){ switch ( nCheckMode ) { - case oslCheckMode::Exist: - if ( rc == ::osl::FileBase::E_None ) - bCheckResult = true; - break; case oslCheckMode::OpenAccess: if ( rc == ::osl::FileBase::E_None ) bCheckResult = true; |