app: GimpFreeSelectTool: remove if (tool->display != display) checks

This can't happen in motion() and release() because they won't be
called if we didn't activate the tool.
This commit is contained in:
Michael Natterer 2011-03-30 19:01:11 +02:00
parent 9755d7d06c
commit 96c8c35575
1 changed files with 0 additions and 6 deletions

View File

@ -1358,9 +1358,6 @@ gimp_free_select_tool_button_release (GimpTool *tool,
GimpFreeSelectTool *fst = GIMP_FREE_SELECT_TOOL (tool);
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
if (tool->display != display)
return;
gimp_tool_control_halt (tool->control);
gimp_draw_tool_pause (GIMP_DRAW_TOOL (fst));
@ -1411,9 +1408,6 @@ gimp_free_select_tool_motion (GimpTool *tool,
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
if (tool->display != display)
return;
gimp_draw_tool_pause (draw_tool);
priv->last_coords.x = coords->x;