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=e9fa0cd0bce704657bad9d26810f6fa57f78caf2

commit e9fa0cd0bce704657bad9d26810f6fa57f78caf2
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Nov 16 00:32:44 2019 +0100

    Dpkg::Substvars: Remove obsolete no_warn() method
    
    Bump module version to 2.00.
---
 debian/changelog          |  1 +
 scripts/Dpkg/Substvars.pm | 21 +++++----------------
 2 files changed, 6 insertions(+), 16 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8841b1cb2..0cf8c186d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -63,6 +63,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
     - Dpkg::Source::Package: Hide internal lowercase variable
       @tar_ignore_default_pattern. Remove iternal lowercase variable alias
       $diff_ignore_default_regexp.
+    - Dpkg::Substvars: Remove obsolete no_warn() method.
   * Documentation:
     - man: Fix uncommon wording constructs.
     - man: Use a minus sign for a literal string.
diff --git a/scripts/Dpkg/Substvars.pm b/scripts/Dpkg/Substvars.pm
index d2060efc5..49ebd902b 100644
--- a/scripts/Dpkg/Substvars.pm
+++ b/scripts/Dpkg/Substvars.pm
@@ -19,7 +19,7 @@ package Dpkg::Substvars;
 use strict;
 use warnings;
 
-our $VERSION = '1.06';
+our $VERSION = '2.00';
 
 use Dpkg ();
 use Dpkg::Arch qw(get_host_arch);
@@ -168,21 +168,6 @@ sub mark_as_used {
     $self->{attr}{$key} |= SUBSTVAR_ATTR_USED;
 }
 
-=item $s->no_warn($key)
-
-Obsolete function, use mark_as_used() instead.
-
-=cut
-
-sub no_warn {
-    my ($self, $key) = @_;
-
-    warnings::warnif('deprecated',
-                     'obsolete no_warn() function, use mark_as_used() 
instead');
-
-    $self->mark_as_used($key);
-}
-
 =item $s->parse($fh, $desc)
 
 Add new substitutions read from the filehandle. $desc is used to identify
@@ -438,6 +423,10 @@ indicated file.
 
 =head1 CHANGES
 
+=head2 Version 2.00 (dpkg 1.20.0)
+
+Remove method: $s->no_warn().
+
 =head2 Version 1.06 (dpkg 1.19.0)
 
 New method: $s->set_desc_substvars().

-- 
Dpkg.Org's dpkg

Reply via email to