From: Byrial Jensen Date: Mon, 16 Apr 2012 10:52:57 +0000 (+0200) Subject: Remove unused variable pdown from function UserMoveEvent X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1e39d89485cd604e9008f947a24dde2842100e32;p=xboard.git Remove unused variable pdown from function UserMoveEvent --- diff --git a/backend.c b/backend.c index 5613773..17f875f 100644 --- a/backend.c +++ b/backend.c @@ -6563,10 +6563,9 @@ void UserMoveEvent(int fromX, int fromY, int toX, int toY, int promoChar) { ChessMove moveType; - ChessSquare pdown, pup; + ChessSquare pup; int ff=fromX, rf=fromY, ft=toX, rt=toY; - /* Check if the user is playing in turn. This is complicated because we let the user "pick up" a piece before it is his turn. So the piece he tried to pick up may have been captured by the time he puts it down! @@ -6702,7 +6701,6 @@ UserMoveEvent(int fromX, int fromY, int toX, int toY, int promoChar) } if(toX < 0 || toY < 0) return; - pdown = boards[currentMove][fromY][fromX]; pup = boards[currentMove][toY][toX]; /* [HGM] If move started in holdings, it means a drop. Convert to standard form */