[pve-devel] [PATCH pve-common] avoid unnecessary imports of raise_param_exc

Dietmar Maurer dietmar at proxmox.com
Thu Jun 14 08:52:28 CEST 2018


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 src/PVE/CLIHandler.pm    | 1 -
 src/PVE/RESTHandler.pm   | 2 +-
 src/PVE/SectionConfig.pm | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm
index 9bbc156..d871ba6 100644
--- a/src/PVE/CLIHandler.pm
+++ b/src/PVE/CLIHandler.pm
@@ -4,7 +4,6 @@ use strict;
 use warnings;
 
 use PVE::SafeSyslog;
-use PVE::Exception qw(raise raise_param_exc);
 use PVE::RESTHandler;
 use PVE::INotify;
 
diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm
index 50c37c2..dc68431 100644
--- a/src/PVE/RESTHandler.pm
+++ b/src/PVE/RESTHandler.pm
@@ -4,7 +4,7 @@ use strict;
 no strict 'refs'; # our autoload requires this
 use warnings;
 use PVE::SafeSyslog;
-use PVE::Exception qw(raise raise_param_exc);
+use PVE::Exception qw(raise);
 use PVE::JSONSchema;
 use PVE::Tools;
 use HTTP::Status qw(:constants :is status_message);
diff --git a/src/PVE/SectionConfig.pm b/src/PVE/SectionConfig.pm
index cc03aea..54a80dd 100644
--- a/src/PVE/SectionConfig.pm
+++ b/src/PVE/SectionConfig.pm
@@ -3,7 +3,6 @@ package PVE::SectionConfig;
 use strict;
 use warnings;
 use Digest::SHA;
-use PVE::Exception qw(raise_param_exc);
 use PVE::JSONSchema qw(get_standard_option);
 
 use Data::Dumper;
-- 
2.11.0



More information about the pve-devel mailing list