This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove the deprecate() macro from handy.h.
authorAbigail <abigail@abigail.be>
Wed, 23 Nov 2016 22:03:13 +0000 (23:03 +0100)
committerAbigail <abigail@abigail.be>
Mon, 16 Jan 2017 18:18:14 +0000 (19:18 +0100)
Since we now require each deprecation message to come with a
version in which the feature will disappear, and we have reworked
the existing uses of this macro, there doesn't seem to be a need
for this one anymore.

handy.h

diff --git a/handy.h b/handy.h
index 4d2f4bc..4c39280 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -2475,8 +2475,6 @@ void Perl_mem_log_del_sv(const SV *sv, const char *filename, const int linenumbe
    shortcut macro defined without -DPERL_CORE. Neither codesearch.google.com nor
    CPAN::Unpack show any users outside the core.  */
 #ifdef PERL_CORE
-#  define deprecate(s) Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED),    \
-                                            "Use of " s " is deprecated")
 #  define deprecate_disappears_in(when,message) \
               Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED),    \
                                message ", and will disappear in Perl " when)