libgimpcolor: Remove function pointer checks as they're checked by caller

Keeping the checks raises red flags in static analysis as render_func
can then be NULL.
This commit is contained in:
Mukund Sivaraman 2011-10-12 20:46:06 +05:30
parent 846392b66c
commit ff6727ae66
1 changed files with 4 additions and 8 deletions

View File

@ -94,8 +94,7 @@ gimp_render_sub_pixel (gint max_depth,
{
num_samples++;
if (render_func)
(* render_func) (x + dx1, y + dy1, &c[0], render_data);
render_func (x + dx1, y + dy1, &c[0], render_data);
block[y1][x1].ready = TRUE;
block[y1][x1].color = c[0];
@ -111,8 +110,7 @@ gimp_render_sub_pixel (gint max_depth,
{
num_samples++;
if (render_func)
(* render_func) (x + dx3, y + dy1, &c[1], render_data);
render_func (x + dx3, y + dy1, &c[1], render_data);
block[y1][x3].ready = TRUE;
block[y1][x3].color = c[1];
@ -128,8 +126,7 @@ gimp_render_sub_pixel (gint max_depth,
{
num_samples++;
if (render_func)
(* render_func) (x + dx1, y + dy3, &c[2], render_data);
render_func (x + dx1, y + dy3, &c[2], render_data);
block[y3][x1].ready = TRUE;
block[y3][x1].color = c[2];
@ -145,8 +142,7 @@ gimp_render_sub_pixel (gint max_depth,
{
num_samples++;
if (render_func)
(* render_func) (x + dx3, y + dy3, &c[3], render_data);
render_func (x + dx3, y + dy3, &c[3], render_data);
block[y3][x3].ready = TRUE;
block[y3][x3].color = c[3];