From 359fd932e5925dff7dd722bd9bb2aa463210badd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 12 Jul 2013 21:11:21 +0000 Subject: Removes the revertstate, as it is no longer being used, --- src/solverwindow.cc | 10 +++------- src/solverwindow.h | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/solverwindow.cc b/src/solverwindow.cc index a73eb51..bb9a2ec 100644 --- a/src/solverwindow.cc +++ b/src/solverwindow.cc @@ -52,8 +52,7 @@ void SolverWindow::openFromFile(const QString & filename) QApplication::setOverrideCursor(Qt::WaitCursor); - QTextStream textstream(&file); - + QTextStream textstream(&file); Sudoku sudoku; for (int row = 0; row < 9; row++) { for (int column = 0; column < 9 ; column++) { @@ -62,11 +61,9 @@ void SolverWindow::openFromFile(const QString & filename) sudoku.cell(row, column).set_value(i); } } - solverwindow_sudokuwidget->set_values(sudoku); - solverwindow_revertstate.assign(sudoku); - file.close(); + solverwindow_sudokuwidget->set_values(sudoku); solverwindow_filename = filename; QApplication::restoreOverrideCursor(); @@ -86,8 +83,7 @@ void SolverWindow::saveToFile(const QString & filename) QApplication::setOverrideCursor(Qt::WaitCursor); - QTextStream textstream(&file); - + QTextStream textstream(&file); Sudoku sudoku; solverwindow_sudokuwidget->get_values(sudoku); for (int row = 0; row < 9; row++) { diff --git a/src/solverwindow.h b/src/solverwindow.h index dc2e595..053e14a 100644 --- a/src/solverwindow.h +++ b/src/solverwindow.h @@ -55,7 +55,6 @@ private: void openFromFile(const QString & filename); SudokuWidget *solverwindow_sudokuwidget; - Sudoku solverwindow_revertstate; QString solverwindow_filename; }; -- cgit v1.2.3