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 | |
parent | 2adeecad3d72ccfb46ed39278c6b1831d8dbad64 (diff) | |
download | dpkg-27228611177b0cde44325df2ac8c32ae6bc6d2eb.tar.gz |
Dpkg::Gettext: Remove obsolete _g() function
Bump module version to 2.00.
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | scripts/Dpkg/Gettext.pm | 16 |
2 files changed, 5 insertions, 12 deletions
diff --git a/debian/changelog b/debian/changelog index 60865b3b8..64b463182 100644 --- a/debian/changelog +++ b/debian/changelog @@ -59,6 +59,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium $compression_re_file_ext. - Dpkg::Deps::KnownFacts: Remove obsolete check_package() method. - Dpkg::Exit: Hide internal lowercase @handlers variable. + - Dpkg::Gettext: Remove obsolete _g() function. * Documentation: - man: Fix uncommon wording constructs. - man: Use a minus sign for a literal string. 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) |