aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Utils.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-11-12 18:32:06 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-11-12 18:32:06 +0000
commit88942202e6e74c8586074ac7b7ed2d1e6f1c9a9a (patch)
tree10df3a9ec99773397faddbcf7923a46d8efac7c5 /perllib/Utils.pm
parent74c1a09a10d606d9d8850f7fb70b6e578d2c3877 (diff)
Remove unused function, add gridref test.
Diffstat (limited to 'perllib/Utils.pm')
-rw-r--r--perllib/Utils.pm18
1 files changed, 0 insertions, 18 deletions
diff --git a/perllib/Utils.pm b/perllib/Utils.pm
index ab7bc6e12..fa90620a0 100644
--- a/perllib/Utils.pm
+++ b/perllib/Utils.pm
@@ -19,24 +19,6 @@ use mySociety::DBHandle qw(dbh);
use mySociety::GeoUtil;
use mySociety::Locale;
-sub workaround_pg_bytea {
- my ( $st, $img_idx, @elements ) = @_;
- my $s = dbh()->prepare($st);
- for ( my $i = 1 ; $i <= @elements ; $i++ ) {
- if ( $i == $img_idx ) {
- $s->bind_param(
- $i,
- $elements[ $i - 1 ],
- { pg_type => DBD::Pg::PG_BYTEA }
- );
- }
- else {
- $s->bind_param( $i, $elements[ $i - 1 ] );
- }
- }
- $s->execute();
-}
-
=head2 convert_latlon_to_en
( $easting, $northing ) = Utils::convert_en_to_latlon( $latitude, $longitude );