[svn:parrot] r40310 - in trunk: include/parrot src
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Tue Jul 28 17:40:12 UTC 2009
Author: NotFound
Date: Tue Jul 28 17:40:11 2009
New Revision: 40310
URL: https://trac.parrot.org/parrot/changeset/40310
Log:
[cage] delete unused and deprectad function new_closure, Coverity++
Modified:
trunk/include/parrot/sub.h
trunk/src/sub.c
Modified: trunk/include/parrot/sub.h
==============================================================================
--- trunk/include/parrot/sub.h Tue Jul 28 17:17:31 2009 (r40309)
+++ trunk/include/parrot/sub.h Tue Jul 28 17:40:11 2009 (r40310)
@@ -301,11 +301,6 @@
void mark_context_start(void);
PARROT_MALLOC
PARROT_CANNOT_RETURN_NULL
-Parrot_sub * new_closure(PARROT_INTERP)
- __attribute__nonnull__(1);
-
-PARROT_MALLOC
-PARROT_CANNOT_RETURN_NULL
Parrot_cont * new_continuation(PARROT_INTERP,
ARGIN_NULLOK(const Parrot_cont *to))
__attribute__nonnull__(1);
@@ -377,8 +372,6 @@
PARROT_ASSERT_ARG(interp) \
|| PARROT_ASSERT_ARG(ctx)
#define ASSERT_ARGS_mark_context_start __attribute__unused__ int _ASSERT_ARGS_CHECK = 0
-#define ASSERT_ARGS_new_closure __attribute__unused__ int _ASSERT_ARGS_CHECK = \
- PARROT_ASSERT_ARG(interp)
#define ASSERT_ARGS_new_continuation __attribute__unused__ int _ASSERT_ARGS_CHECK = \
PARROT_ASSERT_ARG(interp)
#define ASSERT_ARGS_new_coroutine __attribute__unused__ int _ASSERT_ARGS_CHECK = \
Modified: trunk/src/sub.c
==============================================================================
--- trunk/src/sub.c Tue Jul 28 17:17:31 2009 (r40309)
+++ trunk/src/sub.c Tue Jul 28 17:40:11 2009 (r40310)
@@ -149,28 +149,6 @@
/*
-=item C<Parrot_sub * new_closure(PARROT_INTERP)>
-
-Returns a new C<Parrot_sub> with its own scratchpad.
-
-XXX: Need to document semantics in detail.
-
-=cut
-
-*/
-
-PARROT_MALLOC
-PARROT_CANNOT_RETURN_NULL
-Parrot_sub *
-new_closure(PARROT_INTERP)
-{
- ASSERT_ARGS(new_closure)
- Parrot_sub * const newsub = new_sub(interp);
- return newsub;
-}
-
-/*
-
=item C<Parrot_cont * new_continuation(PARROT_INTERP, const Parrot_cont *to)>
Returns a new C<Parrot_cont> to the context of C<to> with its own copy of the
More information about the parrot-commits
mailing list