aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/UMenu.pas
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2014-11-22 23:21:19 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2014-11-22 23:21:19 +0000
commitfb174160559b9823a932fc238b55eb44619c47e8 (patch)
treebd90bfc144adefb13d4bc21c78f879e84f293790 /src/menu/UMenu.pas
parentadb65ab322d26b262f1988d24ee5cf800e07b4bf (diff)
downloadusdx-fb174160559b9823a932fc238b55eb44619c47e8.tar.gz
usdx-fb174160559b9823a932fc238b55eb44619c47e8.tar.xz
usdx-fb174160559b9823a932fc238b55eb44619c47e8.zip
Remove unused variables and fix warnings with ifdefed variables. Thanks to rudi_s.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3103 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/menu/UMenu.pas')
-rw-r--r--src/menu/UMenu.pas5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/menu/UMenu.pas b/src/menu/UMenu.pas
index b011eddf..756ef237 100644
--- a/src/menu/UMenu.pas
+++ b/src/menu/UMenu.pas
@@ -1315,7 +1315,6 @@ function TMenu.AddSelectSlide(X, Y, W, H, SkipX, SBGW, ColR, ColG, ColB, Int, DC
const Caption: UTF8String; var Data: integer): integer;
var
S: integer;
- I: integer;
begin
S := Length(SelectsS);
SetLength(SelectsS, S + 1);
@@ -1750,7 +1749,7 @@ end;
//of the control at this position
function TMenu.InteractAt(X, Y: real): integer;
var
- i, nBut: integer;
+ i: integer;
begin
Result := -1;
for i := Low(Interactions) to High(Interactions) do
@@ -1782,7 +1781,7 @@ end;
//takes x,y coordinates and returns the button collection id
function TMenu.CollectionAt(X, Y: real): integer;
var
- i, nBut: integer;
+ i: integer;
begin
Result := -1;
for i:= Low(ButtonCollection) to High(ButtonCollection) do