diff --git a/ethereumj-studio/src/main/java/org/ethereum/gui/BlockTableModel.java b/ethereumj-studio/src/main/java/org/ethereum/gui/BlockTableModel.java deleted file mode 100644 index 7a114959..00000000 --- a/ethereumj-studio/src/main/java/org/ethereum/gui/BlockTableModel.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.ethereum.gui; - -import org.ethereum.core.Block; - -import javax.swing.table.AbstractTableModel; - -/** - * www.ethereumJ.com - * - * @author: Roman Mandeleil - * Created on: 15/05/14 12:42 - */ -public class BlockTableModel extends AbstractTableModel { - - @Override - public int getRowCount() { - - fireTableDataChanged(); - int rowCount = (int) UIEthereumManager.ethereum.getBlockChain().getSize(); - return rowCount; - } - - @Override - public int getColumnCount() { - return 1; - } - - @Override - public Object getValueAt(int rowIndex, int columnIndex) { - - Block block = UIEthereumManager.ethereum.getBlockChain().getBlockByNumber(rowIndex); - - if (block == null) return ""; - - return block.toString(); - } -}