From d7a22b69b3113204a209917688e4b4051c44ffab Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Wed, 9 Feb 2022 22:24:21 +0000 Subject: [PATCH] Removed redundant function --- .../java/com/mattrixwv/matrix/IntegerMatrix.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/main/java/com/mattrixwv/matrix/IntegerMatrix.java b/src/main/java/com/mattrixwv/matrix/IntegerMatrix.java index bf25c59..2a262f1 100644 --- a/src/main/java/com/mattrixwv/matrix/IntegerMatrix.java +++ b/src/main/java/com/mattrixwv/matrix/IntegerMatrix.java @@ -1,7 +1,7 @@ //Matrix/src/main/java/com/mattrixwv/IntegerMatrix.java //Mattrixwv // Created: 02-01-22 -//Modified: 02-08-22 +//Modified: 02-09-22 package com.mattrixwv.matrix; @@ -392,20 +392,6 @@ public class IntegerMatrix{ throw new InvalidGeometryException("An identity matrix must have a size > 0"); } } - public static IntegerMatrix generateFilled(int size, int fill){ - //Create a grid with the correct size - int[][] newGrid = new int[size][size]; - - //Set each element in the grid - for(int row = 0;row < size;++row){ - for(int col = 0;col < size;++col){ - newGrid[row][col] = fill; - } - } - - //Return the new matrix - return new IntegerMatrix(newGrid); - } public IntegerMatrix add(IntegerMatrix rightSide){ //Make sure the matrices have compatable geometry if((getNumRows() != rightSide.getNumRows()) || (getNumCols() != rightSide.getNumCols())){