From 8a1c18c67ea0bbb9b00050fa8836eb2fc743505e Mon Sep 17 00:00:00 2001 From: Diego Hernan Borghetti Date: Mon, 11 Feb 2008 17:37:34 -0300 Subject: [PATCH] Removed an unused function, was giving warnings. Author: Matt Ebb SVN revision: 12053 Date: 2007-09-17 02:12:57 -0300 (Mon, 17 Sep 2007) --- source/blender/render/intern/source/rayshade.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/source/blender/render/intern/source/rayshade.c b/source/blender/render/intern/source/rayshade.c index 81ea75d..f746ea6 100644 --- a/source/blender/render/intern/source/rayshade.c +++ b/source/blender/render/intern/source/rayshade.c @@ -850,21 +850,6 @@ static int adaptive_sample_variance(int samples, float *col, float *colsq, float return 0; } -static int adaptive_sample_contrast(int samples, float *prevcol, float *curcol, float thresh) -{ - /* if the last sample's contribution to the total colour was below a small threshold - * (i.e. the samples taken are very similar), then taking more samples that are probably - * going to be the same is wasting effort */ - if ( (fabs( prevcol[0]/(float)(samples-1) - curcol[0]/(float)(samples) ) < thresh) && - (fabs( prevcol[1]/(float)(samples-1) - curcol[1]/(float)(samples) ) < thresh) && - (fabs( prevcol[2]/(float)(samples-1) - curcol[2]/(float)(samples) ) < thresh) ) - { - return 1; - } - else - return 0; -} - static int adaptive_sample_contrast_val(int samples, float prev, float val, float thresh) { /* if the last sample's contribution to the total value was below a small threshold -- 2.11.4.GIT