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/09/07 17:41:50 UTC
svn commit: r1701643 -
/subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
Author: rhuijben
Date: Mon Sep 7 15:41:49 2015
New Revision: 1701643
URL: http://svn.apache.org/r1701643
Log:
Following up on r1701641, remove wrapper function.
* subversion/libsvn_wc/wc_db_pristine.c
(remove_file): Remove function.
(pristine_remove_if_unreferenced_txn): Update caller.
Modified:
subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
Modified: subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c?rev=1701643&r1=1701642&r2=1701643&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c Mon Sep 7 15:41:49 2015
@@ -687,23 +687,6 @@ svn_wc__db_pristine_transfer(svn_wc__db_
-/* Remove the file at FILE_ABSPATH in such a way that we could re-create a
- * new file of the same name at any time thereafter.
- *
- * On Windows, the file will not disappear immediately from the directory if
- * it is still being read so the best thing to do is first rename it to a
- * unique name. */
-static svn_error_t *
-remove_file(const char *file_abspath,
- svn_wc__db_wcroot_t *wcroot,
- svn_boolean_t ignore_enoent,
- apr_pool_t *scratch_pool)
-{
- SVN_ERR(svn_io_remove_file2(file_abspath, ignore_enoent, scratch_pool));
-
- return SVN_NO_ERROR;
-}
-
/* If the pristine text referenced by SHA1_CHECKSUM in WCROOT/SDB, whose path
* within the pristine store is PRISTINE_ABSPATH, has a reference count of
* zero, delete it (both the database row and the disk file).
@@ -739,8 +722,8 @@ pristine_remove_if_unreferenced_txn(svn_
svn_boolean_t ignore_enoent = TRUE;
#endif
- SVN_ERR(remove_file(pristine_abspath, wcroot, ignore_enoent,
- scratch_pool));
+ SVN_ERR(svn_io_remove_file2(pristine_abspath, ignore_enoent,
+ scratch_pool));
}
return SVN_NO_ERROR;