From 2f8aff55e289d01ce3952ee5078b6021d84c3dcd Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 4 Feb 2010 12:51:49 -0800 Subject: [PATCH] Remove deprecated code, overriding update in Template.pm --- lib/WebGUI/Asset/Template.pm | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/lib/WebGUI/Asset/Template.pm b/lib/WebGUI/Asset/Template.pm index 19d8ccb89..e79f71664 100644 --- a/lib/WebGUI/Asset/Template.pm +++ b/lib/WebGUI/Asset/Template.pm @@ -757,30 +757,6 @@ sub removeAttachments { $db->write($rmsql, \@params); } -#------------------------------------------------------------------- - -=head2 update - -Override update from Asset.pm to handle backwards compatibility with the old -packages that contain headBlocks. This will be removed in the future. Don't plan -on this being here. - -=cut - -sub update { - my $self = shift; - my $requestedProperties = shift; - my $properties = clone($requestedProperties); - - if (exists $properties->{headBlock}) { - $properties->{extraHeadTags} .= $properties->{headBlock}; - delete $properties->{headBlock}; - } - - $self->SUPER::update($properties); -} - - #------------------------------------------------------------------- =head2 www_edit