From: David ‘Bombe’ Roden Date: Thu, 24 Nov 2016 19:42:28 +0000 (+0100) Subject: Remove unnecessary code X-Git-Tag: 0.9.7^2~398 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cb0d145643fea439e0b00522a665d67a05707e80;p=Sone.git Remove unnecessary code --- 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); }