Removed more unused C++ files v1.9.0
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Wed, 31 Aug 2011 16:20:56 +0000 (19:20 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Wed, 31 Aug 2011 16:20:56 +0000 (19:20 +0300)
This class was also obsolted by QML

chessclock.pro
classes/timecontrol.h [deleted file]
classes/timecontrol/notimecontrol.h [deleted file]

index 45c9718..f05273d 100644 (file)
@@ -43,8 +43,6 @@ HEADERS  += \
     classes/chessclock.h \
     classes/chessclockwidget.h \
     classes/clockswidget.h \
-    classes/timecontrol.h \
-    classes/timecontrol/notimecontrol.h \
     classes/timecontrol/fischerclock.h \
     classes/timecontrol/fischerafterclock.h \
     classes/timecontrol/delayclock.h \
diff --git a/classes/timecontrol.h b/classes/timecontrol.h
deleted file mode 100644 (file)
index 7881e68..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
- /**************************************************************************
-
-    Chess Clock
-
-    Copyright (c) Arto Hyvättinen 2010
-
-    This file is part of Chess Clock software.
-
-    Chess Clock is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Chess Clock is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-
-**************************************************************************/
-
-#ifndef TIMECONTROL_H
-#define TIMECONTROL_H
-
-#include <QString>
-#include <QIcon>
-class ClocksWidget;
-
-/*! Base class of virtual controls
-
-  @author Arto Hyvättinen
-  @date 2010-08-15
-
-  */
-class TimeControl
-{
-public:
-    /*! Name of the time control */
-    virtual QString getName() = 0;
-    /*! Description of the time control */
-    virtual QString getDescription() = 0;
-    /*! Icon of the time control */
-    virtual QIcon getIcon() { return QIcon(":/rc/pic/chessclock.png"); }
-    /*! Init new game
-
-      Ask options, and init new game.
-      @param useLastSettings Use last settings, don't ask
-      @return Clocks widget for new game, or NULL if unsuccess. */
-    virtual ClocksWidget* initGame(bool useLastSettings=false) = 0;
-};
-
-
-#endif // TIMECONTROL_H
diff --git a/classes/timecontrol/notimecontrol.h b/classes/timecontrol/notimecontrol.h
deleted file mode 100644 (file)
index 219e053..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
- /**************************************************************************
-
-    Chess Clock
-
-    Copyright (c) Arto Hyvättinen 2010
-
-    This file is part of Chess Clock software.
-
-    Chess Clock is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    Chess Clock is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-
-**************************************************************************/
-
-#ifndef NOTIMECONTROL_H
-#define NOTIMECONTROL_H
-
-#include "../timecontrol.h"
-#include <QApplication>
-
-class NoTimeControl : public TimeControl
-{
-public:
-    NoTimeControl();
-
-    QString getName() { return qApp->translate("NoTimeControl","Normal clock"); }
-    QString getDescription();
-    QIcon getIcon();
-    ClocksWidget* initGame(bool useLastSettings);
-};
-
-#endif // NOTIMECONTROL_H