remove toggleToolbar and getToolbar state

These are not necessary with the new toolbars
This commit is contained in:
Doug Bell 2011-04-14 15:22:31 -05:00
parent f5ebb6e916
commit 9d6fa33e16
3 changed files with 0 additions and 34 deletions

View file

@ -1726,20 +1726,6 @@ sub getToolbar {
return $output;
}
#-------------------------------------------------------------------
=head2 getToolbarState ( )
Returns 0 if the state is normal, and 1 if the toolbar state has been toggled. See toggleToolbar() for details.
=cut
sub getToolbarState {
my $self = shift;
return $self->{_toolbarState};
}
#-------------------------------------------------------------------
=head2 getUiLevel ( )
@ -2579,24 +2565,6 @@ sub setState {
$self->purgeCache;
}
#-------------------------------------------------------------------
=head2 toggleToolbar ( )
Toggles a toolbar to a special state so that custom toolbars can be rendered under special circumstances. This is mostly useful for macros that wish to proxy an asset but not display the toolbar.
=cut
sub toggleToolbar {
my $self = shift;
if ($self->{_toolbarState}) {
$self->{_toolbarState} = 0;
} else {
$self->{_toolbarState} = 1;
}
}
#-------------------------------------------------------------------
=head2 write ( )

View file

@ -77,7 +77,6 @@ sub process {
}
}
elsif ($asset->canView) {
$asset->toggleToolbar;
$asset->prepareView;
my $output = $asset->view;
$perfLog->({ asset => $asset, time => Time::HiRes::tv_interval($t), type => 'Proxy'})

View file

@ -51,7 +51,6 @@ sub process {
return $i18n->get('childless');
}
elsif ($randomAsset->canView) {
$randomAsset->toggleToolbar;
$randomAsset->prepareView;
return $randomAsset->view;
}