Cleanup: remove unused code

This commit is contained in:
Brecht Van Lommel
2021-10-20 17:58:16 +02:00
parent 0baa876b83
commit 7d111f4ac2
4 changed files with 1 additions and 34 deletions

View File

@@ -50,9 +50,7 @@ CPUKernels::CPUKernels()
REGISTER_KERNEL(adaptive_sampling_filter_x),
REGISTER_KERNEL(adaptive_sampling_filter_y),
/* Cryptomatte. */
REGISTER_KERNEL(cryptomatte_postprocess),
/* Bake. */
REGISTER_KERNEL(bake)
REGISTER_KERNEL(cryptomatte_postprocess)
{
}

View File

@@ -102,10 +102,6 @@ class CPUKernels {
CryptomattePostprocessFunction cryptomatte_postprocess;
/* Bake. */
CPUKernelFunction<void (*)(const KernelGlobalsCPU *, float *, int, int, int, int, int)> bake;
CPUKernels();
};

View File

@@ -107,12 +107,4 @@ void KERNEL_FUNCTION_FULL_NAME(cryptomatte_postprocess)(const KernelGlobalsCPU *
ccl_global float *render_buffer,
int pixel_index);
/* --------------------------------------------------------------------
* Bake.
*/
/* TODO(sergey): Needs to be re-implemented. Or not? Brecht did it already :) */
void KERNEL_FUNCTION_FULL_NAME(bake)(
const KernelGlobalsCPU *kg, float *buffer, int sample, int x, int y, int offset, int stride);
#undef KERNEL_ARCH

View File

@@ -231,25 +231,6 @@ void KERNEL_FUNCTION_FULL_NAME(cryptomatte_postprocess)(const KernelGlobalsCPU *
#endif
}
/* --------------------------------------------------------------------
* Bake.
*/
/* TODO(sergey): Needs to be re-implemented. Or not? Brecht did it already :) */
void KERNEL_FUNCTION_FULL_NAME(bake)(
const KernelGlobalsCPU *kg, float *buffer, int sample, int x, int y, int offset, int stride)
{
#if 0
# ifdef KERNEL_STUB
STUB_ASSERT(KERNEL_ARCH, bake);
# else
# ifdef __BAKING__
kernel_bake_evaluate(kg, buffer, sample, x, y, offset, stride);
# endif
# endif /* KERNEL_STUB */
#endif
}
#undef KERNEL_INVOKE
#undef DEFINE_INTEGRATOR_KERNEL
#undef DEFINE_INTEGRATOR_SHADE_KERNEL