[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [patch] Remove used code in SVN::logReceiver()

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-12-06 19:26:19 CET

Daniel Rall wrote:
> [[[
> Remove used code.
          ^^^^

??? :-)

> * src/SVN/SVN.cpp
> (SVN::logReceiver): Remove unnecessary "if" statement around log
> notification, and redundant "return error" statement.
> ]]]
>
>
> ------------------------------------------------------------------------
>
> Index: src/SVN/SVN.cpp
> ===================================================================
> --- src/SVN/SVN.cpp (revision 8244)
> +++ src/SVN/SVN.cpp (working copy)
> @@ -1214,10 +1214,7 @@
> SVN_ERR (svn->cancel(baton));
> #pragma warning(pop)
>
> - if (svn->Log(rev, author_native, date_native, msg_native, arChangedPaths, time_temp, filechanges, copies, actions))
> - {
> - return error;
> - }
> + svn->Log(rev, author_native, date_native, msg_native, arChangedPaths, time_temp, filechanges, copies, actions);
> return error;

We can't remove that code: the Log() method is virtual, and other
classes have to override it to actually get the log data. Sure, right
now no other class/dialog returns an error, but I like to have the
option to maybe do that later (e.g. out-of-memory errors, other errors
which might occur while trying to use the log data, ...)

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Dec 6 19:26:28 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.