From fe9394741b7ac9ca153c602d6f58664b27438d56 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Thu, 9 Oct 2014 01:29:01 +0900 Subject: Freestyle: silence a GCC warning (-Wunused-function). --- .../blender/freestyle/intern/stroke/BasicStrokeShaders.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source/blender/freestyle/intern') diff --git a/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp b/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp index 8d0720d83d9..11b7df7ecec 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 { // -- cgit v1.2.3