GtkThemingEngine: remove unused code

This commit is contained in:
Carlos Garnacho 2010-11-17 02:59:19 +01:00
parent 892fe46324
commit 25b6945971

View File

@ -1159,70 +1159,6 @@ add_path_line (cairo_t *cr,
cairo_line_to (cr, x2, y2);
}
static void
add_path_rectangle_sides (cairo_t *cr,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
guint sides)
{
if (sides & SIDE_TOP)
{
cairo_move_to (cr, x, y + 0.5);
cairo_line_to (cr, x + width, y + 0.5);
}
if (sides & SIDE_RIGHT)
{
cairo_move_to (cr, x + width - 0.5, y);
cairo_line_to (cr, x + width - 0.5, y + height);
}
if (sides & SIDE_BOTTOM)
{
cairo_move_to (cr, x, y + height - 0.5);
cairo_line_to (cr, x + width, y + height - 0.5);
}
if (sides & SIDE_LEFT)
{
cairo_move_to (cr, x + 0.5, y + height);
cairo_line_to (cr, x + 0.5, y);
}
}
static void
add_path_gap_side (cairo_t *cr,
GtkPositionType gap_side,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
gdouble xy0_gap,
gdouble xy1_gap)
{
switch (gap_side)
{
case GTK_POS_TOP:
add_path_line (cr, x, y, x + xy0_gap, y);
add_path_line (cr, x + xy1_gap, y, x + width, y);
break;
case GTK_POS_BOTTOM:
add_path_line (cr, x, y + height, x + xy0_gap, y + height);
add_path_line (cr, x + xy1_gap, y + height, x + width, y + height);
break;
case GTK_POS_LEFT:
add_path_line (cr, x, y, x, y + xy0_gap);
add_path_line (cr, x, y + xy1_gap, x, y + height);
break;
case GTK_POS_RIGHT:
add_path_line (cr, x + width, y, x + width, y + xy0_gap);
add_path_line (cr, x + width, y + xy1_gap, x + width, y + height);
break;
}
}
static void
color_shade (const GdkRGBA *color,
gdouble factor,