summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2020-03-25 18:39:25 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2020-03-25 19:36:10 +0100
commitf1959c4414b3f50c8bdf9fd87fb0501523b08535 (patch)
treecc6c7f5217a1e7247a3246192e9552a409b79e80
parentb275cce0878ddb7a56361c8d626c76ad57ad7d72 (diff)
ucb-webdav-neon: drop large commented code blocks
Change-Id: I02fe3f93edf94829b4456df2e8a7740698cf5263 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91066 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx43
1 files changed, 1 insertions, 42 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 56f813a8c1fb..46a60b4d179e 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -787,44 +787,7 @@ void NeonSession::Init()
}
// Add hooks (i.e. for adding additional headers to the request)
-
-#if 0
- /* Hook called when a request is created. */
- //typedef void (*ne_create_request_fn)(ne_request *req, void *userdata,
- // const char *method, const char *path);
-
- ne_hook_create_request( m_pHttpSession, create_req_hook_fn, this );
-#endif
-
- /* Hook called before the request is sent. 'header' is the raw HTTP
- * header before the trailing CRLF is added: add in more here. */
- //typedef void (*ne_pre_send_fn)(ne_request *req, void *userdata,
- // ne_buffer *header);
-
ne_hook_pre_send( m_pHttpSession, NeonSession_PreSendRequest, this );
-#if 0
- /* Hook called after the request is sent. May return:
- * NE_OK everything is okay
- * NE_RETRY try sending the request again.
- * anything else signifies an error, and the request is failed. The
- * return code is passed back the _dispatch caller, so the session error
- * must also be set appropriately (ne_set_error).
- */
- //typedef int (*ne_post_send_fn)(ne_request *req, void *userdata,
- // const ne_status *status);
-
- ne_hook_post_send( m_pHttpSession, post_send_req_hook_fn, this );
-
- /* Hook called when the request is destroyed. */
- //typedef void (*ne_destroy_req_fn)(ne_request *req, void *userdata);
-
- ne_hook_destroy_request( m_pHttpSession, destroy_req_hook_fn, this );
-
- /* Hook called when the session is destroyed. */
- //typedef void (*ne_destroy_sess_fn)(void *userdata);
-
- ne_hook_destroy_session( m_pHttpSession, destroy_sess_hook_fn, this );
-#endif
if ( !m_aProxyName.isEmpty() )
{
@@ -843,13 +806,9 @@ void NeonSession::Init()
ne_redirect_register( m_pHttpSession );
// authentication callbacks.
-#if 1
ne_add_server_auth( m_pHttpSession, NE_AUTH_ALL, NeonSession_NeonAuth, this );
ne_add_proxy_auth ( m_pHttpSession, NE_AUTH_ALL, NeonSession_NeonAuth, this );
-#else
- ne_set_server_auth( m_pHttpSession, NeonSession_NeonAuth, this );
- ne_set_proxy_auth ( m_pHttpSession, NeonSession_NeonAuth, this );
-#endif
+
// set timeout to connect
// if connect_timeout is not set, neon returns NE_CONNECT when the TCP socket default
// timeout elapses