[svn:parrot] r49720 - trunk/src/string/encoding
nwellnhof at svn.parrot.org
nwellnhof at svn.parrot.org
Fri Oct 29 01:15:23 UTC 2010
Author: nwellnhof
Date: Fri Oct 29 01:15:23 2010
New Revision: 49720
URL: https://trac.parrot.org/parrot/changeset/49720
Log:
[str] Remove unused function
Modified:
trunk/src/string/encoding/shared.c
trunk/src/string/encoding/shared.h
Modified: trunk/src/string/encoding/shared.c
==============================================================================
--- trunk/src/string/encoding/shared.c Thu Oct 28 23:49:50 2010 (r49719)
+++ trunk/src/string/encoding/shared.c Fri Oct 29 01:15:23 2010 (r49720)
@@ -333,32 +333,6 @@
/*
-=item C<UINTVAL encoding_scan(PARROT_INTERP, const STRING *src)>
-
-Returns the number of codepoints in string C<src>.
-
-=cut
-
-*/
-
-UINTVAL
-encoding_scan(PARROT_INTERP, ARGIN(const STRING *src))
-{
- ASSERT_ARGS(encoding_scan)
- String_iter iter;
- /*
- * this is used to initially calculate src->strlen,
- * therefore we must scan the whole string
- */
- STRING_ITER_INIT(interp, &iter);
- while (iter.bytepos < src->bufused)
- STRING_iter_get_and_advance(interp, src, &iter);
- return iter.charpos;
-}
-
-
-/*
-
=item C<void encoding_ord_error(PARROT_INTERP, const STRING *s, INTVAL offset)>
Throws the right exception if STRING_ord was called with a wrong index.
Modified: trunk/src/string/encoding/shared.h
==============================================================================
--- trunk/src/string/encoding/shared.h Thu Oct 28 23:49:50 2010 (r49719)
+++ trunk/src/string/encoding/shared.h Fri Oct 29 01:15:23 2010 (r49720)
@@ -100,10 +100,6 @@
NULLOK(INTVAL offset))
__attribute__nonnull__(1);
-UINTVAL encoding_scan(PARROT_INTERP, ARGIN(const STRING *src))
- __attribute__nonnull__(1)
- __attribute__nonnull__(2);
-
PARROT_CANNOT_RETURN_NULL
STRING * encoding_substr(PARROT_INTERP,
ARGIN(const STRING *src),
@@ -290,9 +286,6 @@
, PARROT_ASSERT_ARG(s))
#define ASSERT_ARGS_encoding_rindex __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
-#define ASSERT_ARGS_encoding_scan __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
- PARROT_ASSERT_ARG(interp) \
- , PARROT_ASSERT_ARG(src))
#define ASSERT_ARGS_encoding_substr __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(src))
More information about the parrot-commits
mailing list