subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1755997 - /subversion/trunk/subversion/libsvn_subr/io.c
Date Thu, 11 Aug 2016 14:41:29 GMT
Author: ivan
Date: Thu Aug 11 14:41:29 2016
New Revision: 1755997

URL: http://svn.apache.org/viewvc?rev=1755997&view=rev
Log:
Remove redundant check.

* subversion/libsvn_subr/io.c
  (svn_io_remove_file2): Remove check for !apr_err, because we have the same
   check few lines below.

Modified:
    subversion/trunk/subversion/libsvn_subr/io.c

Modified: subversion/trunk/subversion/libsvn_subr/io.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/io.c?rev=1755997&r1=1755996&r2=1755997&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/io.c (original)
+++ subversion/trunk/subversion/libsvn_subr/io.c Thu Aug 11 14:41:29 2016
@@ -2650,9 +2650,6 @@ svn_io_remove_file2(const char *path,
          allow us to delete when path is read-only */
       SVN_ERR(svn_io_set_file_read_write(path, ignore_enoent, scratch_pool));
       apr_err = apr_file_remove(path_apr, scratch_pool);
-
-      if (!apr_err)
-        return SVN_NO_ERROR;
     }
 
   /* Check to make sure we aren't trying to delete a directory */



Mime
View raw message