[Bf-blender-cvs] [fe93947] master: Freestyle: silence a GCC warning (-Wunused-function).

Tamito Kajiyama noreply at git.blender.org
Wed Oct 8 18:31:40 CEST 2014


Commit: fe9394741b7ac9ca153c602d6f58664b27438d56
Author: Tamito Kajiyama
Date:   Thu Oct 9 01:29:01 2014 +0900
Branches: master
https://developer.blender.org/rBfe9394741b7ac9ca153c602d6f58664b27438d56

Freestyle: silence a GCC warning (-Wunused-function).

===================================================================

M	source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp

===================================================================

diff --git a/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp b/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp
index 8d0720d..11b7df7 100644
--- a/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp
+++ b/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp
@@ -50,20 +50,6 @@ extern "C" {
 
 namespace Freestyle {
 
-// Internal function
-
-static void convert(ImBuf *imBuf, float **oArray, unsigned &oSize)
-{
-	oSize = imBuf->x;
-	*oArray = new float[oSize];
-
-	char *pix;
-	for (unsigned int i = 0; i < oSize; ++i) {
-		pix = (char *) imBuf->rect + i * 4;
-		(*oArray)[i] = ((float) pix[2]) / 255.0f;
-	}
-}
-
 namespace StrokeShaders {
 
 //




More information about the Bf-blender-cvs mailing list