You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2015/01/25 18:21:29 UTC
svn commit: r1654671 - in /subversion/trunk/subversion/libsvn_ra_serf:
commit.c getlocationsegments.c
Author: rhuijben
Date: Sun Jan 25 17:21:28 2015
New Revision: 1654671
URL: http://svn.apache.org/r1654671
Log:
Following up on recent changes, minor cleanup.
No functional changes.
* subversion/libsvn_ra_serf/commit.c
(commit_context_t): Remove unused member.
(get_version_url,
add_directory,
add_file): Remove obsolete comment.
(svn_ra_serf__get_commit_editor): Update caller.
* subversion/libsvn_ra_serf/getlocationsegments.c
(svn_ra_serf__get_location_segments): Avoid duplicated work.
Modified:
subversion/trunk/subversion/libsvn_ra_serf/commit.c
subversion/trunk/subversion/libsvn_ra_serf/getlocationsegments.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/commit.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/commit.c?rev=1654671&r1=1654670&r2=1654671&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/commit.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/commit.c Sun Jan 25 17:21:28 2015
@@ -51,7 +51,6 @@ typedef struct commit_context_t {
apr_pool_t *pool;
svn_ra_serf__session_t *session;
- svn_ra_serf__connection_t *conn;
apr_hash_t *revprop_table;
@@ -462,7 +461,6 @@ get_version_url(const char **checked_in_
this lookup, so we'll do things the hard(er) way, by
looking up the version URL from a resource in the
baseline collection. */
- /* ### conn==NULL for session->conns[0]. same as CONN. */
SVN_ERR(svn_ra_serf__get_stable_url(&propfind_url,
NULL /* latest_revnum */,
session,
@@ -1530,7 +1528,6 @@ add_directory(const char *path,
dir->copy_path);
}
- /* ### conn==NULL for session->conns[0]. same as commit->conn. */
SVN_ERR(svn_ra_serf__get_stable_url(&req_url, NULL /* latest_revnum */,
dir->commit_ctx->session,
uri.path, dir->copy_revision,
@@ -1726,7 +1723,6 @@ add_file(const char *path,
if (status)
return svn_ra_serf__wrap_err(status, NULL);
- /* ### conn==NULL for session->conns[0]. same as commit_ctx->conn. */
SVN_ERR(svn_ra_serf__get_stable_url(&req_url, NULL /* latest_revnum */,
dir->commit_ctx->session,
uri.path, copy_revision,
@@ -2087,7 +2083,6 @@ svn_ra_serf__get_commit_editor(svn_ra_se
ctx->pool = pool;
ctx->session = session;
- ctx->conn = session->conns[0];
ctx->revprop_table = svn_prop_hash_dup(revprop_table, pool);
Modified: subversion/trunk/subversion/libsvn_ra_serf/getlocationsegments.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/getlocationsegments.c?rev=1654671&r1=1654670&r2=1654671&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/getlocationsegments.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/getlocationsegments.c Sun Jan 25 17:21:28 2015
@@ -193,8 +193,6 @@ svn_ra_serf__get_location_segments(svn_r
handler->body_delegate = create_gls_body;
handler->body_delegate_baton = gls_ctx;
handler->body_type = "text/xml";
- handler->conn = session->conns[0];
- handler->session = session;
err = svn_ra_serf__context_run_one(handler, pool);