Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Knights
Commits
6e9d1be2
Commit
6e9d1be2
authored
Sep 27, 2020
by
Alexander Lohnau
💬
Browse files
Remove unused variables
parent
374c259e
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/gamemanager.cpp
View file @
6e9d1be2
...
...
@@ -277,7 +277,6 @@ void Manager::initialize() {
d
->
activePlayer
=
White
;
d
->
whiteTimeControl
.
currentTime
=
d
->
whiteTimeControl
.
baseTime
;
d
->
blackTimeControl
.
currentTime
=
d
->
blackTimeControl
.
baseTime
;
QList
<
Protocol
*>
protocols
;
Protocol
::
white
()
->
setTimeControl
(
d
->
whiteTimeControl
);
Protocol
::
black
()
->
setTimeControl
(
d
->
blackTimeControl
);
connect
(
Protocol
::
white
(),
&
Protocol
::
pieceMoved
,
this
,
&
Manager
::
moveByProtocol
);
...
...
src/knights.cpp
View file @
6e9d1be2
...
...
@@ -316,8 +316,6 @@ void MainWindow::fileLoad() {
void
MainWindow
::
protocolInitSuccesful
()
{
qCDebug
(
LOG_KNIGHTS
)
<<
"Show Clock:"
<<
Settings
::
showClock
()
<<
"Show Console:"
<<
Settings
::
showConsole
();
QString
whiteName
=
Protocol
::
white
()
->
playerName
();
QString
blackName
=
Protocol
::
black
()
->
playerName
();
updateCaption
();
// show clock action button if timer active
...
...
src/rules/chessrules.cpp
View file @
6e9d1be2
...
...
@@ -524,7 +524,6 @@ void ChessRules::changeNotation ( Move* move, Move::Notation notation, Color col
* * Rbe1 == Rook from file b to e1
* * cd4 == Pawn from file c to d4
*/
QChar
c
;
PieceType
type
=
NoType
;
int
file
=
-
1
;
int
rank
=
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment