From 4fff46bf53cf018d9f976da8c0351701fc99e467 Mon Sep 17 00:00:00 2001 From: Silas Dohm <silas.dohm@stud.hs-bochum.de> Date: Wed, 3 Aug 2022 14:27:32 +0200 Subject: [PATCH] unused copy constructor removed --- cell.cpp | 9 --------- cell.h | 1 - 2 files changed, 10 deletions(-) diff --git a/cell.cpp b/cell.cpp index d448ede..4afa1a3 100644 --- a/cell.cpp +++ b/cell.cpp @@ -31,15 +31,6 @@ Cell::Cell(QWidget *parent) : QWidget(parent) connect(m_number,SIGNAL(clicked()),this,SLOT(un())); } -Cell::Cell(const Cell &old_obj){ - possibleStates = old_obj.possibleStates; - collapsed = old_obj.collapsed; - index = old_obj.index; - - m_number = new QPushButton(old_obj.m_number); - //m_states = old_obj.m_states; - qInfo("aaa"); -} void Cell::collapse(int x) { collapsed = true; diff --git a/cell.h b/cell.h index 3ca68e3..12b63ab 100644 --- a/cell.h +++ b/cell.h @@ -9,7 +9,6 @@ class Cell : public QWidget Q_OBJECT public: explicit Cell(QWidget *parent = 0); - Cell (const Cell &old_obj); int possibleStates=9; bool collapsed = false; std::vector<int> index={0,1,2,3,4,5,6,7,8}; -- GitLab