summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-11-16 00:32:44 +0100
committerGuillem Jover <guillem@debian.org>2019-11-26 02:42:45 +0100
commite9fa0cd0bce704657bad9d26810f6fa57f78caf2 (patch)
tree2dd166526718198e7a972ecb9094f8e3e54e2442
parent605d9f8a8a59c8413a9ba0ab260b6f10a7ac1c70 (diff)
downloaddpkg-e9fa0cd0bce704657bad9d26810f6fa57f78caf2.tar.gz
Dpkg::Substvars: Remove obsolete no_warn() method
Bump module version to 2.00.
-rw-r--r--debian/changelog1
-rw-r--r--scripts/Dpkg/Substvars.pm21
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().