diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx index f8b9d71b521e..e1ff5d6d82cf 100644 --- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx @@ -164,34 +164,34 @@ DAVResourceAccess & DAVResourceAccess::operator=( return *this; } -#if 0 // currently not used, but please don't remove code - void DAVResourceAccess::OPTIONS( - DAVCapabilities & rCapabilities, - const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( DAVException ) + DAVOptions & rOptions, + const css::uno::Reference< + css::ucb::XCommandEnvironment > & xEnv ) + throw ( DAVException ) { initialize(); - bool bRetry; int errorCount = 0; + bool bRetry; do { bRetry = false; try { DAVRequestHeaders aHeaders; + getUserRequestHeaders( xEnv, getRequestURI(), - OUString( "OPTIONS" ), + css::ucb::WebDAVHTTPMethod_OPTIONS, aHeaders ); m_xSession->OPTIONS( getRequestURI(), - rCapabilities, + rOptions, DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv) ); + aHeaders, xEnv ) ); } catch ( const DAVException & e ) { @@ -203,8 +203,6 @@ void DAVResourceAccess::OPTIONS( } while ( bRetry ); } -#endif - void DAVResourceAccess::PROPFIND( const Depth nDepth, diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx index 43392b92558c..503c1befe91e 100644 --- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx +++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx @@ -86,13 +86,11 @@ public: // DAV methods - -#if 0 // currently not used, but please don't remove code void - OPTIONS( DAVCapabilities & rCapabilities, - const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) + OPTIONS( DAVOptions & rOptions, + const css::uno::Reference< + css::ucb::XCommandEnvironment > & xEnv ) throw ( DAVException ); -#endif // allprop & named void