Skip to content

Commit

Permalink
kill unused, dangerously encapsulation-breaking function
Browse files Browse the repository at this point in the history
  • Loading branch information
plobsing committed Sep 11, 2011
1 parent b042a82 commit 0ab106f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
9 changes: 0 additions & 9 deletions include/parrot/call.h
Expand Up @@ -431,13 +431,6 @@ void Parrot_pcc_set_regs_ps(PARROT_INTERP,
__attribute__nonnull__(2)
__attribute__nonnull__(3);

PARROT_EXPORT
void Parrot_pcc_set_regs_used(PARROT_INTERP,
ARGIN(PMC *ctx),
int type,
INTVAL num)
__attribute__nonnull__(2);

PARROT_EXPORT
void Parrot_pcc_set_sub(PARROT_INTERP,
ARGIN(PMC *ctx),
Expand Down Expand Up @@ -526,8 +519,6 @@ PMC * Parrot_set_new_context(PARROT_INTERP,
#define ASSERT_ARGS_Parrot_pcc_set_regs_ps __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(ctx) \
, PARROT_ASSERT_ARG(bp_ps))
#define ASSERT_ARGS_Parrot_pcc_set_regs_used __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(ctx))
#define ASSERT_ARGS_Parrot_pcc_set_sub __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(ctx))
Expand Down
18 changes: 0 additions & 18 deletions src/call/context.c
Expand Up @@ -730,24 +730,6 @@ Parrot_pcc_get_regs_used(SHIM_INTERP, ARGIN(const PMC *ctx), int type)

/*
=item C<void Parrot_pcc_set_regs_used(PARROT_INTERP, PMC *ctx, int type, INTVAL
num)>
Set number of used registers of particular type.
=cut
*/
PARROT_EXPORT
void
Parrot_pcc_set_regs_used(SHIM_INTERP, ARGIN(PMC *ctx), int type, INTVAL num)
{
ASSERT_ARGS(Parrot_pcc_set_regs_used)
CONTEXT_STRUCT(ctx)->n_regs_used[type] = num;
}

/*
=item C<Regs_ni* Parrot_pcc_get_regs_ni(PARROT_INTERP, const PMC *ctx)>
Get pointer to FLOANFAL and INTVAL registers.
Expand Down

0 comments on commit 0ab106f

Please sign in to comment.