Skip to content

Commit

Permalink
Do away with stashpv_hvname_match
Browse files Browse the repository at this point in the history
For some reason this is listed in the API, even though it is not docu-
mented and is only available under ithreads.

It was added by commit ed221c5, which doesn’t explain why it needed
to be part of the API.  (Presumably because a public macro used it,
even though there are better ways to solve that.)

It is unused on CPAN and (now) in core, so there is no reason
to keep it.
  • Loading branch information
Father Chrysostomos committed Jun 5, 2012
1 parent 61b3e50 commit c947b31
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions embed.fnc
Expand Up @@ -2440,8 +2440,6 @@ np |void |my_swabn |NN void* ptr|int n
Ap |GV* |gv_fetchpvn_flags|NN const char* name|STRLEN len|I32 flags|const svtype sv_type
Ap |GV* |gv_fetchsv|NN SV *name|I32 flags|const svtype sv_type

ApR |bool |stashpv_hvname_match|NN const COP *c|NN const HV *hv

#ifdef DEBUG_LEAKING_SCALARS_FORK_DUMP
: Used in sv.c
p |void |dump_sv_child |NN SV *sv
Expand Down
1 change: 0 additions & 1 deletion embed.h
Expand Up @@ -531,7 +531,6 @@
#define sortsv_flags(a,b,c,d) Perl_sortsv_flags(aTHX_ a,b,c,d)
#define stack_grow(a,b,c) Perl_stack_grow(aTHX_ a,b,c)
#define start_subparse(a,b) Perl_start_subparse(aTHX_ a,b)
#define stashpv_hvname_match(a,b) Perl_stashpv_hvname_match(aTHX_ a,b)
#define str_to_version(a) Perl_str_to_version(aTHX_ a)
#define sv_2bool_flags(a,b) Perl_sv_2bool_flags(aTHX_ a,b)
#define sv_2cv(a,b,c,d) Perl_sv_2cv(aTHX_ a,b,c,d)
Expand Down
7 changes: 0 additions & 7 deletions proto.h
Expand Up @@ -3667,13 +3667,6 @@ PERL_CALLCONV PerlIO* Perl_start_glob(pTHX_ SV *tmpglob, IO *io)
assert(tmpglob); assert(io)

PERL_CALLCONV I32 Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
PERL_CALLCONV bool Perl_stashpv_hvname_match(pTHX_ const COP *c, const HV *hv)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2);
#define PERL_ARGS_ASSERT_STASHPV_HVNAME_MATCH \
assert(c); assert(hv)

PERL_CALLCONV NV Perl_str_to_version(pTHX_ SV *sv)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1);
Expand Down
10 changes: 0 additions & 10 deletions util.c
Expand Up @@ -5694,16 +5694,6 @@ Perl_get_hash_seed(pTHX)
return myseed;
}

#ifdef USE_ITHREADS
bool
Perl_stashpv_hvname_match(pTHX_ const COP *c, const HV *hv)
{
PERL_ARGS_ASSERT_STASHPV_HVNAME_MATCH;
return CopSTASH(c) == hv;
}
#endif


#ifdef PERL_GLOBAL_STRUCT

#define PERL_GLOBAL_STRUCT_INIT
Expand Down

0 comments on commit c947b31

Please sign in to comment.