Skip to content

Commit

Permalink
gpm-backlight: unused function 'gpm_common_sum_scale'
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj authored and raveit65 committed Mar 11, 2022
1 parent da9a428 commit 2a42090
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/gpm-backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,6 @@ gpm_backlight_dialog_show (GpmBacklight *backlight)
gdk_display_sync (gtk_widget_get_display (backlight->priv->popup));
}

/**
* gpm_common_sum_scale:
*
* Finds the average between value1 and value2 set on a scale factor
**/
static inline gfloat
gpm_common_sum_scale (gfloat value1, gfloat value2, gfloat factor)
{
gfloat diff;
diff = value1 - value2;
return value2 + (diff * factor);
}

/**
* gpm_backlight_brightness_evaluate_and_set:
**/
Expand Down

0 comments on commit 2a42090

Please sign in to comment.