diff options
author | Guillem Jover <guillem@debian.org> | 2019-11-16 00:32:44 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-11-26 02:42:45 +0100 |
commit | e9fa0cd0bce704657bad9d26810f6fa57f78caf2 (patch) | |
tree | 2dd166526718198e7a972ecb9094f8e3e54e2442 /scripts | |
parent | 605d9f8a8a59c8413a9ba0ab260b6f10a7ac1c70 (diff) | |
download | dpkg-e9fa0cd0bce704657bad9d26810f6fa57f78caf2.tar.gz |
Dpkg::Substvars: Remove obsolete no_warn() method
Bump module version to 2.00.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Dpkg/Substvars.pm | 21 |
1 files changed, 5 insertions, 16 deletions
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(). |