[Rt-commit] rt branch, update-action, updated. 53b9f8e2293b7d40a1113088acca33e95ecf9079
sartak at bestpractical.com
sartak at bestpractical.com
Fri Dec 11 03:39:09 EST 2009
The branch, update-action has been updated
via 53b9f8e2293b7d40a1113088acca33e95ecf9079 (commit)
from 0ce1ce7a57d05ab6e4ae64e636b09670ebb890a1 (commit)
Summary of changes:
lib/RT/Action/TicketAction.pm | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
- Log -----------------------------------------------------------------
commit 53b9f8e2293b7d40a1113088acca33e95ecf9079
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Dec 11 03:39:01 2009 -0500
Remove useless use of indirection
diff --git a/lib/RT/Action/TicketAction.pm b/lib/RT/Action/TicketAction.pm
index 1f8f512..261d54c 100644
--- a/lib/RT/Action/TicketAction.pm
+++ b/lib/RT/Action/TicketAction.pm
@@ -165,13 +165,7 @@ sub _add_parameter_type {
if (my $canonicalizer = $args{canonicalizer}) {
unless ($class->can("canonicalize_$name")) {
- *{$class."::canonicalize_$name"} = sub {
- use strict 'refs';
- my $self = shift;
- my $value = shift;
-
- return $self->$canonicalizer($value, @_);
- };
+ *{$class."::canonicalize_$name"} = $canonicalizer;
}
}
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list