From af18fb8036f913078e1215961f6a953a3d808d06 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 27 Nov 2014 20:48:51 +0500 Subject: Cycles: Code cleanup, remove dead code --- intern/cycles/kernel/osl/osl_closures.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'intern/cycles') diff --git a/intern/cycles/kernel/osl/osl_closures.cpp b/intern/cycles/kernel/osl/osl_closures.cpp index cc9942b024e..bae9cb2f377 100644 --- a/intern/cycles/kernel/osl/osl_closures.cpp +++ b/intern/cycles/kernel/osl/osl_closures.cpp @@ -189,11 +189,7 @@ static void register_closure(OSL::ShadingSystem *ss, const char *name, int id, O /* optimization: it's possible to not use a prepare function at all and * only initialize the actual class when accessing the closure component * data, but then we need to map the id to the class somehow */ -#ifdef CLOSURE_PREPARE - ss->register_closure(name, id, params, prepare, NULL, NULL); -#else ss->register_closure(name, id, params, prepare, NULL); -#endif } void OSLShader::register_closures(OSLShadingSystem *ss_) -- cgit v1.2.3