This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=27228611177b0cde44325df2ac8c32ae6bc6d2eb

commit 27228611177b0cde44325df2ac8c32ae6bc6d2eb
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Nov 16 00:31:07 2019 +0100

    Dpkg::Gettext: Remove obsolete _g() function
    
    Bump module version to 2.00.
---
 debian/changelog        |  1 +
 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)
 

-- 
Dpkg.Org's dpkg

Reply via email to