mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Remove unused tableRow field from ProposalListItem
The 'tableRow' field of each (voted upon) proposal list item is reset upon selection of a cycle list item in the Vote Result view, but not set anywhere, so remove the field along with its set/reset methods.
This commit is contained in:
parent
3a70213d1b
commit
6780d35716
2 changed files with 1 additions and 18 deletions
|
@ -40,7 +40,6 @@ import org.bitcoinj.core.Coin;
|
|||
import de.jensd.fx.fontawesome.AwesomeIcon;
|
||||
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.TableRow;
|
||||
import javafx.scene.layout.HBox;
|
||||
import javafx.scene.layout.StackPane;
|
||||
|
||||
|
@ -51,18 +50,14 @@ import lombok.Getter;
|
|||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ProposalListItem {
|
||||
|
||||
@Getter
|
||||
private EvaluatedProposal evaluatedProposal;
|
||||
private final EvaluatedProposal evaluatedProposal;
|
||||
@Getter
|
||||
private final Proposal proposal;
|
||||
private final Vote vote;
|
||||
private final boolean isMyBallotIncluded;
|
||||
private final BsqFormatter bsqFormatter;
|
||||
|
||||
private TableRow tableRow;
|
||||
|
||||
|
||||
ProposalListItem(EvaluatedProposal evaluatedProposal, Ballot ballot, boolean isMyBallotIncluded,
|
||||
BsqFormatter bsqFormatter) {
|
||||
this.evaluatedProposal = evaluatedProposal;
|
||||
|
@ -104,17 +99,6 @@ public class ProposalListItem {
|
|||
return myVoteIcon;
|
||||
}
|
||||
|
||||
public void setTableRow(TableRow tableRow) {
|
||||
this.tableRow = tableRow;
|
||||
}
|
||||
|
||||
public void resetTableRow() {
|
||||
if (tableRow != null) {
|
||||
tableRow.setStyle(null);
|
||||
tableRow.requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public String getProposalOwnerName() {
|
||||
return evaluatedProposal.getProposal().getName();
|
||||
}
|
||||
|
|
|
@ -495,7 +495,6 @@ public class VoteResultView extends ActivatableView<GridPane, Void> implements D
|
|||
proposalsTableView.setItems(sortedProposalList);
|
||||
sortedProposalList.comparatorProperty().bind(proposalsTableView.comparatorProperty());
|
||||
|
||||
proposalList.forEach(ProposalListItem::resetTableRow);
|
||||
proposalList.clear();
|
||||
|
||||
Map<String, Ballot> ballotByProposalTxIdMap = daoFacade.getAllValidBallots().stream()
|
||||
|
|
Loading…
Add table
Reference in a new issue