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 2013/10/16 13:30:55 UTC

svn commit: r1532730 - /subversion/trunk/subversion/libsvn_repos/config_pool.c

Author: rhuijben
Date: Wed Oct 16 11:30:55 2013
New Revision: 1532730

URL: http://svn.apache.org/r1532730
Log:
* subversion/libsvn_repos/config_pool.c
  (find_repos_config): Make the preprocessor ignore DEAD code instead of the
    having the compiler do that. Leave the code as it looks like this function
    was written to actually do something. No functional changes.

Modified:
    subversion/trunk/subversion/libsvn_repos/config_pool.c

Modified: subversion/trunk/subversion/libsvn_repos/config_pool.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/config_pool.c?rev=1532730&r1=1532729&r2=1532730&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/config_pool.c (original)
+++ subversion/trunk/subversion/libsvn_repos/config_pool.c Wed Oct 16 11:30:55 2013
@@ -434,7 +434,7 @@ add_checksum(svn_repos__config_pool_t *c
 }
 
 /* Set *CFG to the configuration stored in URL@HEAD and cache it in 
- * CONFIG_POOL.
+ * CONFIG_POOL. ### Always returns a NULL CFG.
  * 
  * RESULT_POOL determines the lifetime of the returned reference and 
  * SCRATCH_POOL is being used for temporary allocations.
@@ -446,17 +446,23 @@ find_repos_config(svn_config_t **cfg,
                   apr_pool_t *result_pool,
                   apr_pool_t *scratch_pool)
 {
+#if 0
   svn_repos_t *repos;
   svn_fs_t *fs;
   svn_fs_root_t *root;
   svn_revnum_t youngest_rev;
   svn_node_kind_t node_kind;
+#endif
   const char *dirent;
+#if 0
   svn_stream_t *stream;
   const char *fs_path;
+#endif
   const char *repos_root_dirent;
+#if 0
   svn_checksum_t *checksum;
   svn_stringbuf_t *contents;
+#endif
 
   *cfg = NULL;
   SVN_ERR(svn_uri_get_dirent_from_file_url(&dirent, url, scratch_pool));
@@ -464,7 +470,7 @@ find_repos_config(svn_config_t **cfg,
   /* Search for a repository in the full path. */
   repos_root_dirent = svn_repos_find_root_path(dirent, scratch_pool);
     return SVN_NO_ERROR;
-
+#if 0
   /* Attempt to open a repository at repos_root_dirent. */
   SVN_ERR(svn_repos_open2(&repos, repos_root_dirent, NULL, scratch_pool));
 
@@ -512,6 +518,7 @@ find_repos_config(svn_config_t **cfg,
                                       youngest_rev, checksum));
 
   return SVN_NO_ERROR;
+#endif
 }
 
 /* Set *CFG to the configuration cached in CONFIG_POOL for URL.  If no