From cb0d145643fea439e0b00522a665d67a05707e80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 24 Nov 2016 20:42:28 +0100 Subject: [PATCH] Remove unnecessary code --- src/main/java/net/pterodactylus/sone/web/DeleteProfileFieldPage.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/DeleteProfileFieldPage.java b/src/main/java/net/pterodactylus/sone/web/DeleteProfileFieldPage.java index a137b82..ffab3b7 100644 --- a/src/main/java/net/pterodactylus/sone/web/DeleteProfileFieldPage.java +++ b/src/main/java/net/pterodactylus/sone/web/DeleteProfileFieldPage.java @@ -66,11 +66,6 @@ public class DeleteProfileFieldPage extends SoneTemplatePage { /* process POST request. */ if (request.getMethod() == Method.POST) { if (request.getHttpRequest().getPartAsStringFailsafe("confirm", 4).equals("true")) { - fieldId = request.getHttpRequest().getParam("field"); - field = profile.getFieldById(fieldId); - if (field == null) { - throw new RedirectException("invalid.html"); - } profile.removeField(field); currentSone.setProfile(profile); } -- 2.7.4