Commit bce1743d authored by Yannick Li's avatar Yannick Li
Browse files

Remove unused code in Grid.tsx

parent f55be38e
......@@ -26,7 +26,6 @@ import React from 'react';
import assert from 'assert';
import Cell from './Cell';
import { validInput, GRIDS } from '../constants'
import Submit1Input from './Submit1Input';
/**
* Interface for the state of the Grid
......@@ -57,19 +56,6 @@ class Grid extends React.Component<{}, IGridState> {
this.initFrom(generateStaticGrid());
}
/**
* Update cells values from C-Client.
*/
updateGrid() {
let cells = this.state.cells;
for (let index = 0; index < 81; index++) {
if (cells[index].modifiable) {
cells[index].value = "";
}
}
this.updateState(cells)
}
/**
* Initialize the grid with the given values.
* @param values values to be set in the grid.
......@@ -336,20 +322,4 @@ function blockIndex(block: number) {
return index
}
/**
* Concatenates all values of a HashSet as a String.
* @param set HashSet to be concatenated.
*/
function hashSetToString(set: any) {
let res = new Set();
let it = set.iterator();
while (it.hasNext()) {
let val = it.next();
if (val !== "") {
res.add(val);
}
}
return Array.from(res).sort().join(' ')
}
export default Grid
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment