From 71eb3c3ab21a6c93ace3e527abeefaaaaa4b556e Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 29 Dec 2015 14:09:29 +0100 Subject: [PATCH] Removed useless DESCRIPTION_COL constant --- .../libraries/ui/LibrariesIndexTableModel.java | 12 +++--------- .../packages/ui/ContributionIndexTableModel.java | 13 +++---------- .../arduino/contributions/ui/InstallerJDialog.java | 3 +-- 3 files changed, 7 insertions(+), 21 deletions(-) diff --git a/app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java b/app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java index 79917e0b1..63d515711 100644 --- a/app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java +++ b/app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java @@ -43,7 +43,6 @@ import java.util.stream.Stream; @SuppressWarnings("serial") public class LibrariesIndexTableModel extends FilteredAbstractTableModel { - public final static int DESCRIPTION_COL = 0; private final List contributions = new ArrayList<>(); @@ -120,9 +119,7 @@ public class LibrariesIndexTableModel extends FilteredAbstractTableModel { - public final static int DESCRIPTION_COL = 0; - public static class ContributedPlatformReleases { public final ContributedPackage packager; public final String arch; @@ -184,9 +182,7 @@ public class ContributionIndexTableModel extends FilteredAbstractTableModel extends JDialog { { TableColumnModel tcm = contribTable.getColumnModel(); - TableColumn col = tcm.getColumn(DESCRIPTION_COL); + TableColumn col = tcm.getColumn(0); col.setCellRenderer(createCellRenderer()); col.setCellEditor(createCellEditor()); col.setResizable(true);