From a1609259d31d9bfbf8a7558bfcd8354f89a73a23 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 5 Jun 2015 11:23:11 +0200 Subject: [PATCH 1/1] remove superfluous substitution regexps are greedy so the first substitution eats up multiple groups of double-colons up to the last one already. So unless there's some intended hidden side effect this statement has no obvious purpose. --- src/PVE/RESTHandler.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm index 4153192..ad0f929 100644 --- a/src/PVE/RESTHandler.pm +++ b/src/PVE/RESTHandler.pm @@ -275,8 +275,6 @@ sub AUTOLOAD { my $sub = $AUTOLOAD; (my $method = $sub) =~ s/.*:://; - $method =~ s/.*:://; - my $info = $this->map_method_by_name($method); *{$sub} = sub { -- 2.39.2