Skip to content

Commit

Permalink
remove some more unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Sep 24, 2024
1 parent 7239403 commit 2b1f28d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions client/src/main/java/online/screen/AccountSettingsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ public AccountSettingsDialog(String username)
okCancelPanel.setSize(294, 33);
getContentPane().add(okCancelPanel);
okCancelPanel.add(btnOk);
okCancelPanel.add(btnChangePassword);
okCancelPanel.add(btnCancel);
textFieldUsername.setEditable(false);
textFieldEmail.setEditable(false);

btnChangePassword.addActionListener(this);
btnOk.addActionListener(this);
btnCancel.addActionListener(this);

Expand All @@ -53,7 +51,6 @@ public AccountSettingsDialog(String username)
private final JTextField textFieldEmail = new JTextField();
private final JPanel okCancelPanel = new JPanel();
private final JButton btnOk = new JButton("Ok");
private final JButton btnChangePassword = new JButton("Change Password");
private final JButton btnCancel = new JButton("Cancel");

private void init()
Expand Down
14 changes: 0 additions & 14 deletions core/src/main/java/object/ExtendedConcurrentHashMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,4 @@ public KeyType getOnlyKey()
Iterator<KeyType> it = keySet().iterator();
return it.next();
}

public void removeAllWithValue(ValueType value)
{
Iterator<KeyType> it = keySet().iterator();
for (; it.hasNext();)
{
KeyType key = it.next();
ValueType valueInHm = get(key);
if (valueInHm.equals(value))
{
remove(key);
}
}
}
}

0 comments on commit 2b1f28d

Please sign in to comment.