subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1327479 - /subversion/trunk/subversion/mod_dav_svn/reports/update.c
Date Wed, 18 Apr 2012 12:34:37 GMT
Author: rhuijben
Date: Wed Apr 18 12:34:36 2012
New Revision: 1327479

URL: http://svn.apache.org/viewvc?rev=1327479&view=rev
Log:
Replace a local static function with a call to its public cousin.
(This allows delta editor drivers to detect that the result is not used by
using a simple pointer comparison).

* subversion/mod_dav_svn/reports/update.c
  (dummy_window_handler): Remove function.
  (upd_apply_textdelta): Update caller.

Modified:
    subversion/trunk/subversion/mod_dav_svn/reports/update.c

Modified: subversion/trunk/subversion/mod_dav_svn/reports/update.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/reports/update.c?rev=1327479&r1=1327478&r2=1327479&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/reports/update.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/reports/update.c Wed Apr 18 12:34:36 2012
@@ -734,18 +734,6 @@ window_handler(svn_txdelta_window_t *win
   return SVN_NO_ERROR;
 }
 
-
-/* This implements 'svn_txdelta_window_handler_t'.
-   During a resource walk, the driver sends an empty window as a
-   boolean indicating that a change happened to this file, but we
-   don't want to send anything over the wire as a result. */
-static svn_error_t *
-dummy_window_handler(svn_txdelta_window_t *window, void *baton)
-{
-  return SVN_NO_ERROR;
-}
-
-
 static svn_error_t *
 upd_apply_textdelta(void *file_baton,
                     const char *base_checksum,
@@ -765,7 +753,7 @@ upd_apply_textdelta(void *file_baton,
      we don't actually want to transmit text-deltas. */
   if (file->uc->resource_walk || (! file->uc->send_all))
     {
-      *handler = dummy_window_handler;
+      *handler = svn_delta_noop_window_handler;
       *handler_baton = NULL;
       return SVN_NO_ERROR;
     }



Mime
View raw message