Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

#6 - remove deprecated methods #13

Merged
merged 1 commit into from
Nov 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions lib/WG/API/NET.pm
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,6 @@ sub account_info {

=over 1

=item B<clans_list>

DEPRECATED: Method searches through clans and sorts them in a specified order.

=cut

sub clans_list {
cluck "DEPRECATED!";
return shift->_request(
'get', 'wgn/clans/list/',
[ 'language', 'fields', 'search', 'limit', 'page_no', 'game' ],
undef, @_
);
}

=item B<clans>

Method searches through clans and sorts them in a specified order.
Expand Down
3 changes: 1 addition & 2 deletions t/02-net.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ isa_ok( $net, 'WG::API::NET', 'valid instance' );

can_ok( $net, qw/servers_info/ );
can_ok( $net, qw/accounts_list account_info/ );
can_ok( $net, qw/clans_list clans_info clans_membersinfo clans_glossary clans_messageboard/ );
can_ok( $net, qw/clans_info clans_membersinfo clans_glossary clans_messageboard/ );

SKIP: {
skip 'developers only', 26 unless $ENV{'WGMODE'} && $ENV{'WGMODE'} eq 'dev';
Expand Down Expand Up @@ -47,7 +47,6 @@ SKIP: {

subtest 'clans' => sub {
my ( $clans, $clan_info );
is( $net->clans_list( game => 'wox', search => 'hellenes' ), undef, 'Search clan, using deprecated method' );
is( $clans = $net->clans( game => 'wox', search => 'hellenes' ), undef, 'Search clan with invalid game' );
is( $net->clans_info( clan_id => 'clan_id' ), undef, 'Get clan info with invalid clan_id' );

Expand Down