You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/06/22 19:40:08 UTC
[lucy-commits] svn commit: r1138564 - in /incubator/lucy/trunk/clownfish: lib/Clownfish.xs
src/CFCBindMethod.c
Author: marvin
Date: Wed Jun 22 17:40:08 2011
New Revision: 1138564
URL: http://svn.apache.org/viewvc?rev=1138564&view=rev
Log:
Remove some redundant comments and commented-out debugging code.
Modified:
incubator/lucy/trunk/clownfish/lib/Clownfish.xs
incubator/lucy/trunk/clownfish/src/CFCBindMethod.c
Modified: incubator/lucy/trunk/clownfish/lib/Clownfish.xs
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/lib/Clownfish.xs?rev=1138564&r1=1138563&r2=1138564&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/lib/Clownfish.xs (original)
+++ incubator/lucy/trunk/clownfish/lib/Clownfish.xs Wed Jun 22 17:40:08 2011
@@ -1720,11 +1720,6 @@ callback_def(unused, meth)
CFCMethod *meth;
CODE:
RETVAL = S_sv_eat_c_string(CFCBindMeth_callback_def(meth));
- /*
- char *def = CFCBindMeth_callback_def(meth);
- RETVAL = newSVpvn(def, strlen(def));
- FREEMEM(def);
- */
OUTPUT: RETVAL
SV*
Modified: incubator/lucy/trunk/clownfish/src/CFCBindMethod.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCBindMethod.c?rev=1138564&r1=1138563&r2=1138564&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCBindMethod.c (original)
+++ incubator/lucy/trunk/clownfish/src/CFCBindMethod.c Wed Jun 22 17:40:08 2011
@@ -130,8 +130,6 @@ S_build_unused_vars(CFCVariable **vars)
return unused;
}
-/* Create an unreachable return statement if necessary, in order to thwart
- * compiler warnings. */
static char*
S_maybe_unreachable(CFCType *return_type) {
char *return_statement;
@@ -213,13 +211,6 @@ CFCBindMeth_callback_def(CFCMethod *meth
return callback_def;
}
-/* Return a string which maps arguments to various arg wrappers conforming
- * to Host's callback interface. For instance, (int32_t foo, Obj *bar)
- * produces the following:
- *
- * CFISH_ARG_I32("foo", foo),
- * CFISH_ARG_OBJ("bar", bar)
- */
static char*
S_callback_params(CFCMethod *method) {
const char *micro_sym = CFCSymbol_micro_sym((CFCSymbol*)method);