From c0843f064987d3f53ea84b994cd055afab57cb52 Mon Sep 17 00:00:00 2001 From: Weizhen Huang Date: Wed, 21 May 2025 18:59:21 +0200 Subject: [PATCH] Cleanup: Cycles: remove unused function --- intern/cycles/integrator/pass_accessor.cpp | 6 ------ intern/cycles/integrator/pass_accessor.h | 1 - 2 files changed, 7 deletions(-) diff --git a/intern/cycles/integrator/pass_accessor.cpp b/intern/cycles/integrator/pass_accessor.cpp index 49e016b2988..8f816920b00 100644 --- a/intern/cycles/integrator/pass_accessor.cpp +++ b/intern/cycles/integrator/pass_accessor.cpp @@ -32,12 +32,6 @@ PassAccessor::Destination::Destination(float *pixels, const int num_components) { } -PassAccessor::Destination::Destination(const PassType pass_type, half4 *pixels) - : Destination(pass_type) -{ - pixels_half_rgba = pixels; -} - PassAccessor::Destination::Destination(const PassType pass_type) { const PassInfo pass_info = Pass::get_info(pass_type); diff --git a/intern/cycles/integrator/pass_accessor.h b/intern/cycles/integrator/pass_accessor.h index a91e5fe00aa..503de56e321 100644 --- a/intern/cycles/integrator/pass_accessor.h +++ b/intern/cycles/integrator/pass_accessor.h @@ -45,7 +45,6 @@ class PassAccessor { public: Destination() = default; Destination(float *pixels, const int num_components); - Destination(const PassType pass_type, half4 *pixels); /* Destination will be initialized with the number of components which is native for the given * pass type. */