From: Wolfgang Bumiller Date: Fri, 5 Jun 2015 09:23:11 +0000 (+0200) Subject: remove superfluous substitution X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=a1609259d31d9bfbf8a7558bfcd8354f89a73a23;ds=inline 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. --- 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 {