You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2012/11/11 10:28:18 UTC
svn commit: r1407931 - in /subversion/branches/wc-collate-path/subversion:
libsvn_subr/utf8proc.c tests/libsvn_subr/utf-test.c
Author: brane
Date: Sun Nov 11 09:28:17 2012
New Revision: 1407931
URL: http://svn.apache.org/viewvc?rev=1407931&view=rev
Log:
On the wc-collate-path branch: Remove debugging code.
* subversion/libsvn_subr/utf8proc.c,
subversion/tests/libsvn_subr/utf-test.c: Do not include svn_debug.h.
Remove all SVN_DBG calls.
Modified:
subversion/branches/wc-collate-path/subversion/libsvn_subr/utf8proc.c
subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c
Modified: subversion/branches/wc-collate-path/subversion/libsvn_subr/utf8proc.c
URL: http://svn.apache.org/viewvc/subversion/branches/wc-collate-path/subversion/libsvn_subr/utf8proc.c?rev=1407931&r1=1407930&r2=1407931&view=diff
==============================================================================
--- subversion/branches/wc-collate-path/subversion/libsvn_subr/utf8proc.c (original)
+++ subversion/branches/wc-collate-path/subversion/libsvn_subr/utf8proc.c Sun Nov 11 09:28:17 2012
@@ -33,10 +33,6 @@
#include "svn_private_config.h"
#define UNUSED(x) ((void)(x))
-#ifdef SVN_DEBUG
-#include "private/svn_debug.h"
-#endif
-
const char *svn_utf__utf8proc_version(void)
{
@@ -195,10 +191,6 @@ svn_utf__glob(const char *pattern, apr_s
svn_stringbuf_t *temp_buf,
svn_boolean_t *match)
{
- SVN_DBG((">ptn : %s\n", pattern));
- SVN_DBG((">str : %s\n", string));
- SVN_DBG((">esc : %s\n", (escape ? escape : "(null)")));
-
/* If we're in LIKE mode, we don't do custom escape chars. */
if (escape && !sql_like)
return svn_error_create(SVN_ERR_UTF8_GLOB, NULL,
@@ -239,7 +231,6 @@ svn_utf__glob(const char *pattern, apr_s
return svn_error_createf(SVN_ERR_UTF8_GLOB, NULL,
"Invalid ESCAPE character U+%04lX",
(long)ucs4esc);
- SVN_DBG(("<esc : %c (U+%04lX)\n", (char)(ucs4esc & 0xFF), (long)ucs4esc));
}
svn_stringbuf_setempty(pattern_buf);
@@ -278,14 +269,12 @@ svn_utf__glob(const char *pattern, apr_s
}
pattern_buf->data[pattern_buf->len] = '\0';
}
- SVN_DBG(("glob : %s\n", pattern_buf->data));
/* Now normalize the string */
SVN_ERR(decompose_normalized(string, string_len, temp_buf));
SVN_ERR(encode_ucs4_string(string_buf,
(void *)temp_buf->data,
temp_buf->len));
- SVN_DBG(("string: %s\n", string_buf->data));
*match = !apr_fnmatch(pattern_buf->data, string_buf->data, 0);
return SVN_NO_ERROR;
Modified: subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c?rev=1407931&r1=1407930&r2=1407931&view=diff
==============================================================================
--- subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c (original)
+++ subversion/branches/wc-collate-path/subversion/tests/libsvn_subr/utf-test.c Sun Nov 11 09:28:17 2012
@@ -27,10 +27,6 @@
#include "private/svn_utf_private.h"
-#ifdef SVN_DEBUG
-#include "private/svn_debug.h"
-#endif
-
/* Random number seed. Yes, it's global, just pretend you can't see it. */
static apr_uint32_t diff_diff3_seed;
@@ -583,8 +579,6 @@ test_utf_pattern_match(apr_pool_t *pool)
svn_error_t *err;
- SVN_DBG(("--- %d ----------\n", (int)(gt - glob_tests)));
-
err = svn_utf__glob(gt->pattern, lenptn,
gt->string, lenstr,
gt->escape, lenesc,