subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1082678 - in /subversion/trunk/subversion/libsvn_wc: entries.c wc_db.c wc_db.h
Date Thu, 17 Mar 2011 20:23:20 GMT
Author: hwright
Date: Thu Mar 17 20:23:19 2011
New Revision: 1082678

URL: http://svn.apache.org/viewvc?rev=1082678&view=rev
Log:
Remove an unused parameter for the database mode.

* subversion/libsvn_wc/entries.c
  (read_one_entry): Update caller.

* subversion/libsvn_wc/wc_db.c
  (svn_wc__db_temp_borrow_sdb): Remove useless param and conditionals.

* subversion/libsvn_wc/wc_db.h
  (svn_wc__db_temp_borrow_sdb): Remove param.

Modified:
    subversion/trunk/subversion/libsvn_wc/entries.c
    subversion/trunk/subversion/libsvn_wc/wc_db.c
    subversion/trunk/subversion/libsvn_wc/wc_db.h

Modified: subversion/trunk/subversion/libsvn_wc/entries.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/entries.c?rev=1082678&r1=1082677&r2=1082678&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/entries.c (original)
+++ subversion/trunk/subversion/libsvn_wc/entries.c Thu Mar 17 20:23:19 2011
@@ -489,7 +489,6 @@ read_one_entry(const svn_wc_entry_t **ne
 
           SVN_ERR(svn_wc__db_temp_borrow_sdb(
                     &sdb, db, dir_abspath,
-                    svn_wc__db_openmode_readonly,
                     scratch_pool));
 
           SVN_ERR(svn_sqlite__get_statement(&stmt, sdb,

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1082678&r1=1082677&r2=1082678&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Thu Mar 17 20:23:19 2011
@@ -8033,20 +8033,13 @@ svn_error_t *
 svn_wc__db_temp_borrow_sdb(svn_sqlite__db_t **sdb,
                            svn_wc__db_t *db,
                            const char *local_dir_abspath,
-                           svn_wc__db_openmode_t mode,
                            apr_pool_t *scratch_pool)
 {
   svn_wc__db_wcroot_t *wcroot;
   const char *local_relpath;
-  svn_sqlite__mode_t smode;
 
   SVN_ERR_ASSERT(svn_dirent_is_absolute(local_dir_abspath));
 
-  if (mode == svn_wc__db_openmode_readonly)
-    smode = svn_sqlite__mode_readonly;
-  else
-    smode = svn_sqlite__mode_readwrite;
-
   SVN_ERR(svn_wc__db_wcroot_parse_local_abspath(&wcroot, &local_relpath, db,
                             local_dir_abspath, scratch_pool, scratch_pool));
   VERIFY_USABLE_WCROOT(wcroot);

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.h?rev=1082678&r1=1082677&r2=1082678&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.h (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.h Thu Mar 17 20:23:19 2011
@@ -2432,7 +2432,6 @@ svn_error_t *
 svn_wc__db_temp_borrow_sdb(svn_sqlite__db_t **sdb,
                            svn_wc__db_t *db,
                            const char *local_dir_abspath,
-                           svn_wc__db_openmode_t mode,
                            apr_pool_t *scratch_pool);
 
 



Mime
View raw message