Patch from Maik Beckmann to remove compilation warnings. Fixes #355876.

2006-09-18  Elijah Newren  <newren gmail com>

	* src/spring-model.c (on_end_move, model_is_calm): Patch from Maik
	Beckmann to remove compilation warnings.  Fixes #355876.
This commit is contained in:
Elijah Newren 2006-09-18 16:31:25 +00:00 committed by Elijah Newren
parent def5a12ff0
commit 87100b64d9
2 changed files with 6 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2006-09-18 Elijah Newren <newren gmail com>
* src/spring-model.c (on_end_move, model_is_calm): Patch from Maik
Beckmann to remove compilation warnings. Fixes #355876.
2006-09-18 Elijah Newren <newren gmail com> 2006-09-18 Elijah Newren <newren gmail com>
* configure.in: Make detection of stable vs. unstable automatic * configure.in: Make detection of stable vs. unstable automatic

View File

@ -362,23 +362,12 @@ model_update_move (Model *model, int x, int y)
model->anchor_object->position.y = y - model->anchor_offset.y; model->anchor_object->position.y = y - model->anchor_offset.y;
} }
static void
on_end_move (Model *model)
{
if (model->anchor_object)
{
model->anchor_object->immobile = 0;
model->anchor_object = NULL;
}
}
#define EPSILON 0.02 #define EPSILON 0.02
gboolean gboolean
model_is_calm (Model *model) model_is_calm (Model *model)
{ {
int i, j; int i;
gboolean calm = TRUE;
for (i = 0; i < model->num_objects; i++) for (i = 0; i < model->num_objects; i++)
{ {