mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
analysis: Use static functions when possible
It's best to ensure the functions only used in one compilation unit are marked as static so GCC can inline them if it feels like it.
This commit is contained in:
parent
3161e92818
commit
653a8a7874
@ -153,7 +153,7 @@ _clutter_bezier_t2x (const ClutterBezier * b, _FixedT t)
|
|||||||
+ b->dx;
|
+ b->dx;
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
static gint
|
||||||
_clutter_bezier_t2y (const ClutterBezier * b, _FixedT t)
|
_clutter_bezier_t2y (const ClutterBezier * b, _FixedT t)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -285,7 +285,7 @@ set_clip_planes (float x_1,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
add_stencil_clip_rectangle (float x_1,
|
add_stencil_clip_rectangle (float x_1,
|
||||||
float y_1,
|
float y_1,
|
||||||
float x_2,
|
float x_2,
|
||||||
|
@ -118,7 +118,7 @@ transform_point (CoglMatrix *matrix_mv,
|
|||||||
|
|
||||||
/* Try to push a rectangle given in object coordinates as a rectangle in window
|
/* Try to push a rectangle given in object coordinates as a rectangle in window
|
||||||
* coordinates instead of object coordinates */
|
* coordinates instead of object coordinates */
|
||||||
gboolean
|
static gboolean
|
||||||
try_pushing_rect_as_window_rect (float x_1,
|
try_pushing_rect_as_window_rect (float x_1,
|
||||||
float y_1,
|
float y_1,
|
||||||
float x_2,
|
float x_2,
|
||||||
|
Loading…
Reference in New Issue
Block a user