From 74a53f872c4b1752be02652d1ddb4e5c84045959 Mon Sep 17 00:00:00 2001 From: Jasmine Amohia Date: Thu, 17 Jan 2019 02:55:46 +0000 Subject: [PATCH] Bug 22026: Removed 'use Modern::Perl;' from Koha::REST::classes Test plan: 1) Check all Koha/REST files and confirm that 'use Modern::Perl;' has been removed. Signed-off-by: David Nind --- Koha/REST/Plugin/Objects.pm | 2 -- Koha/REST/Plugin/Pagination.pm | 2 -- Koha/REST/Plugin/PluginRoutes.pm | 2 -- Koha/REST/Plugin/Query.pm | 2 -- Koha/REST/V1.pm | 2 -- Koha/REST/V1/Acquisitions/Vendors.pm | 2 -- Koha/REST/V1/Auth.pm | 2 -- Koha/REST/V1/Cities.pm | 2 -- Koha/REST/V1/Hold.pm | 2 -- Koha/REST/V1/Illrequests.pm | 2 -- Koha/REST/V1/OAuth.pm | 2 -- Koha/REST/V1/Patrons.pm | 2 -- Koha/REST/V1/Patrons/Account.pm | 2 -- Koha/REST/V1/Stage.pm | 2 -- 14 files changed, 28 deletions(-) diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm index 3653f914ef..931c647f89 100644 --- a/Koha/REST/Plugin/Objects.pm +++ b/Koha/REST/Plugin/Objects.pm @@ -15,8 +15,6 @@ package Koha::REST::Plugin::Objects; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Plugin'; =head1 NAME diff --git a/Koha/REST/Plugin/Pagination.pm b/Koha/REST/Plugin/Pagination.pm index 02560055f0..47c7fc08a4 100644 --- a/Koha/REST/Plugin/Pagination.pm +++ b/Koha/REST/Plugin/Pagination.pm @@ -15,8 +15,6 @@ package Koha::REST::Plugin::Pagination; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Plugin'; =head1 NAME diff --git a/Koha/REST/Plugin/PluginRoutes.pm b/Koha/REST/Plugin/PluginRoutes.pm index f51c7bdb46..17ccab38c3 100644 --- a/Koha/REST/Plugin/PluginRoutes.pm +++ b/Koha/REST/Plugin/PluginRoutes.pm @@ -15,8 +15,6 @@ package Koha::REST::Plugin::PluginRoutes; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Plugin'; use Koha::Exceptions::Plugin; diff --git a/Koha/REST/Plugin/Query.pm b/Koha/REST/Plugin/Query.pm index 090f02fe0b..21479f8d01 100644 --- a/Koha/REST/Plugin/Query.pm +++ b/Koha/REST/Plugin/Query.pm @@ -15,8 +15,6 @@ package Koha::REST::Plugin::Query; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Plugin'; use Koha::Exceptions; diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm index b1f4657d4a..df327e9c55 100644 --- a/Koha/REST/V1.pm +++ b/Koha/REST/V1.pm @@ -15,8 +15,6 @@ package Koha::REST::V1; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious'; use C4::Context; diff --git a/Koha/REST/V1/Acquisitions/Vendors.pm b/Koha/REST/V1/Acquisitions/Vendors.pm index 5f86ac82d4..79f401f65a 100644 --- a/Koha/REST/V1/Acquisitions/Vendors.pm +++ b/Koha/REST/V1/Acquisitions/Vendors.pm @@ -15,8 +15,6 @@ package Koha::REST::V1::Acquisitions::Vendors; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Controller'; use Koha::Acquisition::Booksellers; diff --git a/Koha/REST/V1/Auth.pm b/Koha/REST/V1/Auth.pm index cf64a25828..a8b548f4a4 100644 --- a/Koha/REST/V1/Auth.pm +++ b/Koha/REST/V1/Auth.pm @@ -17,8 +17,6 @@ package Koha::REST::V1::Auth; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Controller'; use C4::Auth qw( check_cookie_auth get_session haspermission ); diff --git a/Koha/REST/V1/Cities.pm b/Koha/REST/V1/Cities.pm index 5a579b4ee4..8bca97cc65 100644 --- a/Koha/REST/V1/Cities.pm +++ b/Koha/REST/V1/Cities.pm @@ -15,8 +15,6 @@ package Koha::REST::V1::Cities; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Controller'; use Koha::Cities; diff --git a/Koha/REST/V1/Hold.pm b/Koha/REST/V1/Hold.pm index c3cb926e78..bc25750c0f 100644 --- a/Koha/REST/V1/Hold.pm +++ b/Koha/REST/V1/Hold.pm @@ -15,8 +15,6 @@ package Koha::REST::V1::Hold; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Controller'; use C4::Biblio; diff --git a/Koha/REST/V1/Illrequests.pm b/Koha/REST/V1/Illrequests.pm index a3a0d61c1c..324a1ca94f 100644 --- a/Koha/REST/V1/Illrequests.pm +++ b/Koha/REST/V1/Illrequests.pm @@ -15,8 +15,6 @@ package Koha::REST::V1::Illrequests; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Controller'; use Koha::Illrequests; diff --git a/Koha/REST/V1/OAuth.pm b/Koha/REST/V1/OAuth.pm index b75c89243c..e7c8ec7a70 100644 --- a/Koha/REST/V1/OAuth.pm +++ b/Koha/REST/V1/OAuth.pm @@ -15,8 +15,6 @@ package Koha::REST::V1::OAuth; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Module::Load::Conditional; use C4::Context; diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm index 5e8e398eac..531559644a 100644 --- a/Koha/REST/V1/Patrons.pm +++ b/Koha/REST/V1/Patrons.pm @@ -15,8 +15,6 @@ package Koha::REST::V1::Patrons; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Controller'; use Koha::DateUtils; diff --git a/Koha/REST/V1/Patrons/Account.pm b/Koha/REST/V1/Patrons/Account.pm index deb4d3d58c..3fd3eef398 100644 --- a/Koha/REST/V1/Patrons/Account.pm +++ b/Koha/REST/V1/Patrons/Account.pm @@ -15,8 +15,6 @@ package Koha::REST::V1::Patrons::Account; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Controller'; use Koha::Patrons; diff --git a/Koha/REST/V1/Stage.pm b/Koha/REST/V1/Stage.pm index 485384a41b..f439e979dc 100644 --- a/Koha/REST/V1/Stage.pm +++ b/Koha/REST/V1/Stage.pm @@ -15,8 +15,6 @@ package Koha::REST::V1::Stage; # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use Modern::Perl; - use Mojo::Base 'Mojolicious::Controller'; use Koha::StockRotationRotas; -- 2.11.0