rt 4.2.14 (#13852)
[freeside.git] / rt / lib / RT / ScripActions.pm
index 41ac60e..be0b55c 100755 (executable)
@@ -2,7 +2,7 @@
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
 #                                          <sales@bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
@@ -84,29 +84,19 @@ sub LimitToType  {
   my $self = shift;
   my $type = shift;
   $self->Limit (ENTRYAGGREGATOR => 'OR',
-               FIELD => 'Type',
-               VALUE => "$type")
+                FIELD => 'Type',
+                VALUE => "$type")
       if defined $type;
   $self->Limit (ENTRYAGGREGATOR => 'OR',
-               FIELD => 'Type',
-               VALUE => "Correspond")
+                FIELD => 'Type',
+                VALUE => "Correspond")
       if $type eq "Create";
   $self->Limit (ENTRYAGGREGATOR => 'OR',
-               FIELD => 'Type',
-               VALUE => 'any');
-  
-}
-
-=head2 NewItem
-
-Returns an empty new RT::ScripAction item
+                FIELD => 'Type',
+                VALUE => 'any');
 
-=cut
-
-sub NewItem {
-    my $self = shift;
-    return(RT::ScripAction->new($self->CurrentUser));
 }
+
 RT::Base->_ImportOverlays();
 
 1;