aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Problems.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-07 17:11:50 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-07 17:11:50 +0100
commit891428159dd27e5648676b7b9b51c5a2fe2f83ed (patch)
tree1aa9862e3ab0cd981f0979ce1b29610e4b967657 /perllib/Problems.pm
parent0f7de6563d4c96fa1ec9c429cca7e42259e25422 (diff)
Remove fake_q and most of now-unused Page.pm.
Diffstat (limited to 'perllib/Problems.pm')
-rw-r--r--perllib/Problems.pm13
1 files changed, 0 insertions, 13 deletions
diff --git a/perllib/Problems.pm b/perllib/Problems.pm
index b742932c1..c1430b540 100644
--- a/perllib/Problems.pm
+++ b/perllib/Problems.pm
@@ -27,19 +27,6 @@ sub site_restriction {
return $site_restriction_hash;
}
-sub set_site_restriction {
- my $q = shift;
- my $site = $q->{site};
- if ($site ne 'fixmystreet'){
- my $cobrand = Page::get_cobrand($q);
- my $cobrand_data = Cobrand::extra_data($cobrand, $q);
- ($site_restriction, $site_key) = Cobrand::site_restriction($cobrand, $cobrand_data);
- } else {
- $site_restriction = '';
- $site_key = 0;
- }
-}
-
# Set the site restrictions using the new cobrand style - no need to special
# case 'fixmystreet' as default cobrand takes care of that.
sub set_site_restriction_with_cobrand_object {