diff options
author | Guillem Jover <guillem@debian.org> | 2019-11-16 00:31:07 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-11-26 02:42:45 +0100 |
commit | 27228611177b0cde44325df2ac8c32ae6bc6d2eb (patch) | |
tree | 71d53ff5064c676e72fa5f8650d43269b392c7a9 /scripts | |
parent | 2adeecad3d72ccfb46ed39278c6b1831d8dbad64 (diff) | |
download | dpkg-27228611177b0cde44325df2ac8c32ae6bc6d2eb.tar.gz |
Dpkg::Gettext: Remove obsolete _g() function
Bump module version to 2.00.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Dpkg/Gettext.pm | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/scripts/Dpkg/Gettext.pm b/scripts/Dpkg/Gettext.pm index 03b723c9d..e61cdd1a0 100644 --- a/scripts/Dpkg/Gettext.pm +++ b/scripts/Dpkg/Gettext.pm @@ -30,14 +30,13 @@ use strict; use warnings; use feature qw(state); -our $VERSION = '1.03'; +our $VERSION = '2.00'; our @EXPORT = qw( textdomain ngettext g_ P_ N_ - _g ); use Exporter qw(import); @@ -189,18 +188,11 @@ sub N_ return $msgid; } -# XXX: Backwards compatibility, to be removed on VERSION 2.00. -sub _g ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines) -{ - my $msgid = shift; - - warnings::warnif('deprecated', - 'obsolete _g() function, please use g_() instead'); +=head1 CHANGES - return g_($msgid); -} +=head2 Version 2.00 (dpkg 1.20.0) -=head1 CHANGES +Remove function: _g(). =head2 Version 1.03 (dpkg 1.19.0) |