[Bf-blender-cvs] [9b1b1d9269e] master: Cleanup: remove unused functions

Manuel Castilla noreply at git.blender.org
Fri Oct 15 23:20:18 CEST 2021


Commit: 9b1b1d9269ed3e76faf5c87dc3eff861aa5193dc
Author: Manuel Castilla
Date:   Fri Oct 15 22:12:25 2021 +0200
Branches: master
https://developer.blender.org/rB9b1b1d9269ed3e76faf5c87dc3eff861aa5193dc

Cleanup: remove unused functions

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

M	source/blender/compositor/operations/COM_SunBeamsOperation.cc

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

diff --git a/source/blender/compositor/operations/COM_SunBeamsOperation.cc b/source/blender/compositor/operations/COM_SunBeamsOperation.cc
index 38e9599f7e6..ba1363d1193 100644
--- a/source/blender/compositor/operations/COM_SunBeamsOperation.cc
+++ b/source/blender/compositor/operations/COM_SunBeamsOperation.cc
@@ -64,16 +64,6 @@ template<int fxu, int fxv, int fyu, int fyv> struct BufferLineAccumulator {
 
   /* utility functions implementing the matrix transform to/from sector space */
 
-  static inline void buffer_to_sector(const float source[2], int x, int y, int &u, int &v)
-  {
-    int x0 = (int)source[0];
-    int y0 = (int)source[1];
-    x -= x0;
-    y -= y0;
-    u = x * fxu + y * fyu;
-    v = x * fxv + y * fyv;
-  }
-
   static inline void buffer_to_sector(const float source[2], float x, float y, float &u, float &v)
   {
     int x0 = (int)source[0];
@@ -92,14 +82,6 @@ template<int fxu, int fxv, int fyu, int fyv> struct BufferLineAccumulator {
     y = y0 + u * fyu + v * fyv;
   }
 
-  static inline void sector_to_buffer(const float source[2], float u, float v, float &x, float &y)
-  {
-    int x0 = (int)source[0];
-    int y0 = (int)source[1];
-    x = (float)x0 + u * fxu + v * fxv;
-    y = (float)y0 + u * fyu + v * fyv;
-  }
-
   /**
    * Set up the initial buffer pointer and calculate necessary variables for looping.
    *



More information about the Bf-blender-cvs mailing list