[Rt-commit] r4912 - rt/branches/3.7-EXPERIMENTAL/lib/RT

glasser at bestpractical.com glasser at bestpractical.com
Thu Mar 30 15:44:38 EST 2006


Author: glasser
Date: Thu Mar 30 15:44:35 2006
New Revision: 4912

Modified:
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm

Log:
Remove unnecessary TakeOrSteal method

Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Ticket_Overlay.pm	Thu Mar 30 15:44:35 2006
@@ -3109,25 +3109,6 @@
 
 # }}}
 
-# {{{ sub TakeOrSteal
-
-=head2 TakeOrSteal
-
-A convenience method which does nothing if the current user owns the ticket,
-takes it if it's unowned, and steals it if it's owned.
-
-=cut
-
-sub TakeOrSteal {
-    my $self = shift;
-
-    return 1 if $self->Owner == $self->CurrentUser->id;
-    return $self->Take if $self->Owner == $RT::Nobody->id;
-    return $self->Steal;
-}
-
-# }}}
-
 # }}}
 
 # {{{ Routines dealing with status


More information about the Rt-commit mailing list