aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-08-12 17:14:52 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-08-12 17:40:44 +0100
commitafd363e6ac8ce06a4dc8c387c06106edbfcc7522 (patch)
tree62fcd510fa203789801f4a770a2f15713cb7387e /perllib/FixMyStreet/App/Controller/Report
parentda4135d0b163bdf3033ebb8a49e86ceaaaec00b6 (diff)
Remove some unused code/ database handle.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm27
1 files changed, 1 insertions, 26 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 8eabf64c1..1eb5a8c2f 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -253,7 +253,7 @@ sub report_import : Path('/import') {
my %input =
map { $_ => $c->get_param($_) || '' } (
'service', 'subject', 'detail', 'name', 'email', 'phone',
- 'easting', 'northing', 'lat', 'lon', 'id', 'phone_id',
+ 'easting', 'northing', 'lat', 'lon',
);
my @errors;
@@ -306,31 +306,6 @@ sub report_import : Path('/import') {
return;
}
-### leaving commented out for now as the values stored here never appear to
-### get used and the new user accounts might make them redundant anyway.
- #
- # # Store for possible future use
- # if ( $input{id} || $input{phone_id} ) {
- # my $id = $input{id} || $input{phone_id};
- # my $already =
- # dbh()
- # ->selectrow_array(
- # 'select id from partial_user where service=? and nsid=?',
- # {}, $input{service}, $id );
- # unless ($already) {
- # dbh()->do(
- # 'insert into partial_user (service, nsid, name, email, phone)'
- # . ' values (?, ?, ?, ?, ?)',
- # {},
- # $input{service},
- # $id,
- # $input{name},
- # $input{email},
- # $input{phone}
- # );
- # }
- # }
-
# find or create the user
my $report_user = $c->model('DB::User')->find_or_create(
{