aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Location.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-10-04 18:17:13 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-10-10 23:16:14 +0100
commit5934b383754a2d298100a674a1ccefc2cb9e50af (patch)
tree81f0e217836eddea478bea268371ec02b5887942 /perllib/FixMyStreet/App/Controller/Location.pm
parent6f0ee01f37029c0fdabd161646b8dbbdec676165 (diff)
Simplify geocode cache read/writing.
Don't think the return data ever needs decoding.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Location.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Location.pm1
1 files changed, 0 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Location.pm b/perllib/FixMyStreet/App/Controller/Location.pm
index c457c8fce..cb2077ede 100644
--- a/perllib/FixMyStreet/App/Controller/Location.pm
+++ b/perllib/FixMyStreet/App/Controller/Location.pm
@@ -96,7 +96,6 @@ sub determine_location_from_pc : Private {
if ( ref($error) eq 'ARRAY' ) {
foreach (@$error) {
my $a = $_->{address};
- $a = decode_utf8($a) if !utf8::is_utf8($a);
$a =~ s/, United Kingdom//;
$a =~ s/, UK//;
$_->{address} = $a;