Skip to content

Commit

Permalink
Removed hbdb_get_line_number() and its API wrapper because thanks to …
Browse files Browse the repository at this point in the history
…IMCC, I'll probably never use it
  • Loading branch information
soh-cah-toa committed Jun 15, 2011
1 parent 5766617 commit 2178eb0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
24 changes: 0 additions & 24 deletions src/embed/hbdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,6 @@ Parrot_api_hbdb_get_command(Parrot_PMC interp_pmc)

/*
=item C<Parrot_Int Parrot_api_hbdb_get_line_number(Parrot_PMC interp_pmc,
Parrot_PMC *context_pmc)>
Wrapper function for C<hbdb_get_line_number()>. Returns the line number for the current context.
=cut
*/

PARROT_API
Parrot_Int
Parrot_api_hbdb_get_line_number(Parrot_PMC interp_pmc, ARGIN(Parrot_PMC *context_pmc))
{
ASSERT_ARGS(Parrot_api_hbdb_get_line_number)

EMBED_API_CALLIN(interp_pmc, interp)

hbdb_get_line_number(interp, context_pmc);

EMBED_API_CALLOUT(interp_pmc, interp)
}

/*
=item C<Parrot_Int Parrot_api_hbdb_init(Parrot_PMC interp_pmc)>
Wrapper function for C<hbdb_init()>. Performs general initialization operations.
Expand Down
25 changes: 0 additions & 25 deletions src/hbdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,31 +276,6 @@ hbdb_get_command(PARROT_INTERP)

/*
=item C<INTVAL hbdb_get_line_number(PARROT_INTERP, PMC *context_pmc)>
Returns the line number for the current context.
=cut
*/

INTVAL
hbdb_get_line_number(PARROT_INTERP, ARGIN(PMC *context_pmc))
{
ASSERT_ARGS(hbdb_get_line_number)

INTVAL line_num;
Parrot_Context * const context = PMC_data_typed(context_pmc, Parrot_Context *);

/*line_num = Parrot_sub_get_line_from_pc(interp,
Parrot_pcc_get_sub(interp, context_pmc),
context->current_pc);*/

return line_num;
}

/*
=item C<void hbdb_init(PARROT_INTERP)>
Performs general initialization operations.
Expand Down

0 comments on commit 2178eb0

Please sign in to comment.