From 527511ff80605c3cd7f7af63dd187bd9b19a9583 Mon Sep 17 00:00:00 2001 From: shawnlaffan Date: Tue, 20 Feb 2024 15:22:58 +1100 Subject: [PATCH] Remove non-needed module loads, mostly Readonly and Carp These are not used in these packages. --- lib/Biodiverse/GUI/GUIManager.pm | 1 - lib/Biodiverse/GUI/Manager/BaseDatas.pm | 1 - lib/Biodiverse/GUI/Tabs/CalculationsTree.pm | 1 - lib/Biodiverse/Metadata/BaseStruct.pm | 2 -- lib/Biodiverse/Metadata/Parameter.pm | 2 -- lib/Biodiverse/Metadata/Randomisation.pm | 2 -- lib/Biodiverse/Metadata/SpatialConditions.pm | 3 --- 7 files changed, 12 deletions(-) diff --git a/lib/Biodiverse/GUI/GUIManager.pm b/lib/Biodiverse/GUI/GUIManager.pm index 54ac3682e..872fa67ad 100644 --- a/lib/Biodiverse/GUI/GUIManager.pm +++ b/lib/Biodiverse/GUI/GUIManager.pm @@ -13,7 +13,6 @@ use Carp; use Scalar::Util qw /blessed/; use English ( -no_match_vars ); -use Readonly; use FindBin qw ( $Bin ); use Path::Tiny qw /path/; diff --git a/lib/Biodiverse/GUI/Manager/BaseDatas.pm b/lib/Biodiverse/GUI/Manager/BaseDatas.pm index 3e57b05ac..651c14fa5 100644 --- a/lib/Biodiverse/GUI/Manager/BaseDatas.pm +++ b/lib/Biodiverse/GUI/Manager/BaseDatas.pm @@ -10,7 +10,6 @@ use Carp; use Scalar::Util qw /blessed/; use English ( -no_match_vars ); -use Readonly; use FindBin qw ( $Bin ); use Text::Wrapper; diff --git a/lib/Biodiverse/GUI/Tabs/CalculationsTree.pm b/lib/Biodiverse/GUI/Tabs/CalculationsTree.pm index 902f2e37b..b9d66e5be 100644 --- a/lib/Biodiverse/GUI/Tabs/CalculationsTree.pm +++ b/lib/Biodiverse/GUI/Tabs/CalculationsTree.pm @@ -21,7 +21,6 @@ use Text::Wrapper; our $VERSION = '4.99_002'; -#use Readonly; my $i; use constant MODEL_NAME_COL => $i || 0; use constant MODEL_INDEX_COL => ++$i; diff --git a/lib/Biodiverse/Metadata/BaseStruct.pm b/lib/Biodiverse/Metadata/BaseStruct.pm index 11b0f5d35..2e9eef52d 100644 --- a/lib/Biodiverse/Metadata/BaseStruct.pm +++ b/lib/Biodiverse/Metadata/BaseStruct.pm @@ -2,8 +2,6 @@ package Biodiverse::Metadata::BaseStruct; use strict; use warnings; use 5.016; -use Carp; -use Readonly; our $VERSION = '4.99_002'; diff --git a/lib/Biodiverse/Metadata/Parameter.pm b/lib/Biodiverse/Metadata/Parameter.pm index b0ec35b27..d493322c7 100644 --- a/lib/Biodiverse/Metadata/Parameter.pm +++ b/lib/Biodiverse/Metadata/Parameter.pm @@ -6,8 +6,6 @@ use warnings; # with params and specified extensively in import and export metadata use 5.016; -use Carp; -use Readonly; use parent qw /Biodiverse::Metadata/; diff --git a/lib/Biodiverse/Metadata/Randomisation.pm b/lib/Biodiverse/Metadata/Randomisation.pm index bcc72306f..9caef43ff 100644 --- a/lib/Biodiverse/Metadata/Randomisation.pm +++ b/lib/Biodiverse/Metadata/Randomisation.pm @@ -2,8 +2,6 @@ package Biodiverse::Metadata::Randomisation; use strict; use warnings; use 5.016; -use Carp; -use Readonly; use parent qw /Biodiverse::Metadata/; diff --git a/lib/Biodiverse/Metadata/SpatialConditions.pm b/lib/Biodiverse/Metadata/SpatialConditions.pm index 9a9af151a..b2426c955 100644 --- a/lib/Biodiverse/Metadata/SpatialConditions.pm +++ b/lib/Biodiverse/Metadata/SpatialConditions.pm @@ -2,9 +2,6 @@ package Biodiverse::Metadata::SpatialConditions; use strict; use warnings; use 5.016; -use Carp; -use Readonly; -use Clone qw /clone/; our $VERSION = '4.99_002';