remove unused Exist from oslCheckMode enum

Change-Id: I1ad187342444c5e92b61578d2a67cce2ae5ac428
This commit is contained in:
Noel Grandin
2017-02-15 14:12:03 +02:00
parent 44cfdda29b
commit 4ca9e8fa3a
2 changed files with 1 additions and 5 deletions

View File

@@ -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

View File

@@ -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;