From 895a2e525adfd90a57e1e4dfbcc18bb0c1ca64b4 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 10 Aug 2019 02:51:10 +0200 Subject: Dpkg::Changelog: Remove obsolete methods dpkg() and rfc822() Bump module version to 2.00. --- debian/changelog | 1 + scripts/Dpkg/Changelog.pm | 36 +++++------------------------------- 2 files changed, 6 insertions(+), 31 deletions(-) diff --git a/debian/changelog b/debian/changelog index d2a040681..5c37bcb23 100644 --- a/debian/changelog +++ b/debian/changelog @@ -48,6 +48,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium allow non-equal version relations in virtual provides. Closes: #930317 - Dpkg: Remove internal lowercase variables $version, $progname, $admindir, $dpkglibdir and $pkgdatadir. + - Dpkg::Changelog: Remove obsolete methods dpkg() and rfc822(). * Documentation: - man: Fix uncommon wording constructs. - man: Use a minus sign for a literal string. diff --git a/scripts/Dpkg/Changelog.pm b/scripts/Dpkg/Changelog.pm index 060081079..1485ae583 100644 --- a/scripts/Dpkg/Changelog.pm +++ b/scripts/Dpkg/Changelog.pm @@ -34,7 +34,7 @@ package Dpkg::Changelog; use strict; use warnings; -our $VERSION = '1.01'; +our $VERSION = '2.00'; use Carp; @@ -670,36 +670,6 @@ sub format_range { } } -=item $control = $c->dpkg($range) - -This is a deprecated alias for $c->format_range('dpkg', $range). - -=cut - -sub dpkg { - my ($self, $range) = @_; - - warnings::warnif('deprecated', - 'deprecated method, please use format_range("dpkg", $range) instead'); - - return $self->format_range('dpkg', $range); -} - -=item @controls = $c->rfc822($range) - -This is a deprecated alias for Cformat_range('rfc822', $range)>. - -=cut - -sub rfc822 { - my ($self, $range) = @_; - - warnings::warnif('deprecated', - 'deprecated method, please use format_range("rfc822", $range) instead'); - - return scalar $self->format_range('rfc822', $range); -} - =back =head1 RANGE SELECTION @@ -779,6 +749,10 @@ with only one of the options specified. =head1 CHANGES +=head2 Version 2.00 (dpkg 1.20.0) + +Remove methods: $c->dpkg(), $c->rfc822(). + =head2 Version 1.01 (dpkg 1.18.8) New method: $c->format_range(). -- cgit v1.2.3