diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-07-22 19:43:56 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-07-22 19:43:56 +1000 |
commit | 191893bc8751f56c93bd65d2ce39b0bbd8e97914 (patch) | |
tree | fa13bc747b062168fe8ec29b5e11ff68dca461f8 /sal/osl/w32 | |
parent | 87b333f749a810cdd9f58be80c257d5dcd727dad (diff) |
osl: remove extraneous comments from w32/file_dirvold.cxx
Change-Id: I21a0ce806f64582a62b9ff0e30a2299d1f478ffc
Diffstat (limited to 'sal/osl/w32')
-rw-r--r-- | sal/osl/w32/file_dirvol.cxx | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx index ff1e037e46a7..7e75d4922c60 100644 --- a/sal/osl/w32/file_dirvol.cxx +++ b/sal/osl/w32/file_dirvol.cxx @@ -104,7 +104,7 @@ BOOL FileTimeToTimeValue(const FILETIME *cpFTime, TimeValue *pTimeVal) return fSuccess; } -namespace /* private */ +namespace { struct Component @@ -189,9 +189,7 @@ namespace /* private */ inline bool has_path_parent(const rtl::OUString& path) { return has_path_parent(path.getStr()); } -} // end namespace private - -// volume handling functions +} oslFileError SAL_CALL osl_acquireVolumeDeviceHandle( oslVolumeDeviceHandle Handle ) { @@ -226,8 +224,6 @@ oslFileError SAL_CALL osl_getVolumeDeviceMountPath( oslVolumeDeviceHandle Handle return osl_File_E_INVAL; } -// directory handling functions - #define DIRECTORYITEM_DRIVE 0 #define DIRECTORYITEM_FILE 1 #define DIRECTORYITEM_SERVER 2 @@ -1154,8 +1150,6 @@ SAL_CALL osl_identicalDirectoryItem( oslDirectoryItem a, oslDirectoryItem b) return false; } -// volume / file info handling functions - static inline bool is_floppy_A_present() { return (GetLogicalDrives() & 1); } @@ -1554,14 +1548,6 @@ static oslFileError SAL_CALL osl_getServerInfo( return osl_File_E_INVAL; pStatus->uValidFields = 0; - - // pStatus->uValidFields |= osl_FileStatus_Mask_FileName; - - // if ( _tcscmp( pItemImpl->FindData.cFileName, TEXT(".") ) == 0 ) - // rtl_uString_newFromAscii( &pStatus->ustrFileName, "/" ); - // else - // rtl_uString_newFromStr( &pStatus->ustrFileName, pItemImpl->FindData.cFileName ); - pStatus->eType = osl_File_Type_Directory; pStatus->uValidFields |= osl_FileStatus_Mask_Type; @@ -1690,8 +1676,6 @@ oslFileError SAL_CALL osl_getFileStatus( return osl_File_E_None; } -// file attributes handling functions - oslFileError SAL_CALL osl_setFileAttributes( rtl_uString *ustrFileURL, sal_uInt64 uAttributes ) @@ -1722,7 +1706,9 @@ oslFileError SAL_CALL osl_setFileAttributes( fSuccess = SetFileAttributes( SAL_W(rtl_uString_getStr(ustrSysPath)), dwFileAttributes ); } else + { fSuccess = FALSE; + } if ( !fSuccess ) error = oslTranslateFileError( GetLastError() ); |