summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-09-07 11:03:46 +0000
committersmatz <smatz@openttd.org>2010-09-07 11:03:46 +0000
commit15c2a2d5553bb13768d7da341c3c140c8317a0fe (patch)
tree2d9448abcf56a3c8aaf4a4e4e02b33e99bf59194
parenta282c3ab57a0de7a3551054ab7f7321ba038dc20 (diff)
downloadopenttd-15c2a2d5553bb13768d7da341c3c140c8317a0fe.tar.xz
(svn r20760) -Cleanup (r20753): remove unused CheckMouseOverVehicle()
-rw-r--r--src/viewport.cpp17
-rw-r--r--src/viewport_func.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 451d87110..a883ceb8e 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1836,23 +1836,6 @@ bool HandleViewportClicked(const ViewPort *vp, int x, int y)
return CheckClickOnLandscape(vp, x, y);
}
-Vehicle *CheckMouseOverVehicle()
-{
- const Window *w;
- const ViewPort *vp;
-
- int x = _cursor.pos.x;
- int y = _cursor.pos.y;
-
- w = FindWindowFromPt(x, y);
- if (w == NULL) return NULL;
-
- vp = IsPtInWindowViewport(w, x, y);
- return (vp != NULL) ? CheckClickOnVehicle(vp, x, y) : NULL;
-}
-
-
-
void PlaceObject()
{
Point pt;
diff --git a/src/viewport_func.h b/src/viewport_func.h
index a2dd0df18..2b4f964ec 100644
--- a/src/viewport_func.h
+++ b/src/viewport_func.h
@@ -63,8 +63,6 @@ void SetRedErrorSquare(TileIndex tile);
void SetTileSelectSize(int w, int h);
void SetTileSelectBigSize(int ox, int oy, int sx, int sy);
-Vehicle *CheckMouseOverVehicle();
-
void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom);
bool ScrollWindowTo(int x, int y, int z, Window *w, bool instant = false);