Ticket #926: rm-newcont.patch

File rm-newcont.patch, 1.9 KB (added by jrtayloriv, 12 years ago)

patch to remove unused new_continuation() and new_ret_continuation() functions from src/sub.c

  • src/sub.c

     
    127127 
    128128/* 
    129129 
    130 =item C<PMC * new_continuation(PARROT_INTERP, const PMC *to)> 
    131130 
    132 Returns a new C<PMC> to the context of C<to> with its own copy of the 
    133 current interpreter context.  If C<to> is C<NULL>, then the C<to_ctx> is set 
    134 to the current context. 
    135  
    136 =cut 
    137  
    138 */ 
    139  
    140 PARROT_MALLOC 
    141 PARROT_CANNOT_RETURN_NULL 
    142 PMC * 
    143 new_continuation(PARROT_INTERP, ARGIN_NULLOK(PMC *to)) 
    144 { 
    145     ASSERT_ARGS(new_continuation) 
    146      
    147     PMC * const cc = to ?  
    148         constant_pmc_new_init(interp, enum_class_Continuation, to) : 
    149         constant_pmc_new(interp, enum_class_Continuation); 
    150     return cc; 
    151 } 
    152  
    153131/* 
    154132 
    155 =item C<PMC * new_ret_continuation(PARROT_INTERP)> 
    156  
    157 Returns a new RetContinuation C<PMC> pointing to the current context. 
    158  
    159 =cut 
    160  
    161 */ 
    162  
    163 PARROT_MALLOC 
    164 PARROT_CANNOT_RETURN_NULL 
    165 PMC * 
    166 new_ret_continuation(PARROT_INTERP) 
    167 { 
    168     ASSERT_ARGS(new_ret_continuation) 
    169     PMC * const cc = pmc_new(interp, enum_class_RetContinuation); 
    170     return cc; 
    171 } 
    172  
    173  
    174 /* 
    175  
    176133=item C<PMC * new_ret_continuation_pmc(PARROT_INTERP, opcode_t *address)> 
    177134 
    178135Returns a new C<RetContinuation> PMC, and sets address field to C<address> 
  • include/parrot/sub.h

     
    223223        FUNC_MODIFIES(* ctx); 
    224224 
    225225void mark_context_start(void); 
    226 PARROT_MALLOC 
    227 PARROT_CANNOT_RETURN_NULL 
    228 PMC * new_continuation(PARROT_INTERP, 
    229     ARGIN_NULLOK(PMC *to)) 
    230         __attribute__nonnull__(1); 
    231226 
    232 PARROT_MALLOC 
    233 PARROT_CANNOT_RETURN_NULL 
    234 PMC * new_ret_continuation(PARROT_INTERP) 
    235         __attribute__nonnull__(1); 
    236  
    237227void Parrot_capture_lex(PARROT_INTERP, ARGMOD(PMC *sub_pmc)) 
    238228        __attribute__nonnull__(1) 
    239229        __attribute__nonnull__(2)