Remove useless code
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 15 Mar 2015 10:28:46 +0000 (11:28 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 15 Mar 2015 10:28:46 +0000 (11:28 +0100)
src/main/java/net/pterodactylus/sone/web/EditProfilePage.java

index d7d729f..162d637 100644 (file)
@@ -99,7 +99,6 @@ public class EditProfilePage extends SoneTemplatePage {
                                try {
                                        profile.addField(fieldName);
                                        currentSone.setProfile(profile);
-                                       fields = profile.getFields();
                                        webInterface.getCore().touchConfiguration();
                                        throw new RedirectException("editProfile.html#profile-fields");
                                } catch (DuplicateField df1) {