Skip to content

Commit

Permalink
Remove unused cobrand function.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Aug 16, 2012
1 parent c4b8814 commit 19b6e00
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
4 changes: 1 addition & 3 deletions perllib/FixMyStreet/App/View/Web.pm
Expand Up @@ -83,14 +83,12 @@ sub tprintf {
[% display_crosssell_advert( email, name ) %]
Displays a crosssell advert if permitted by the cobrand.
Displays a crosssell advert (will be fixmystreet cobrand only).
=cut

sub display_crosssell_advert {
my ( $self, $c, $email, $name, %data ) = @_;

return unless $c->cobrand->allow_crosssell_adverts();
return CrossSell::display_advert( $c, $email, $name, %data );
}

Expand Down
9 changes: 0 additions & 9 deletions perllib/FixMyStreet/Cobrand/Default.pm
Expand Up @@ -421,15 +421,6 @@ Return a boolean indicating whether the cobrand allows photo uploads

sub allow_photo_upload { return 1; }

=head2 allow_crosssell_adverts
Return a boolean indicating whether the cobrand allows the display of crosssell
adverts
=cut

sub allow_crosssell_adverts { return 0; }

=head2 allow_photo_display
Return a boolean indicating whether the cobrand allows photo display
Expand Down
2 changes: 0 additions & 2 deletions perllib/FixMyStreet/Cobrand/FixMyStreet.pm
Expand Up @@ -10,7 +10,5 @@ sub admin_base_url {
return 'https://secure.mysociety.org/admin/bci/';
}

sub allow_crosssell_adverts { return 1; }

1;

0 comments on commit 19b6e00

Please sign in to comment.