[Bf-blender-cvs] [4b85ed819dc] master: Cleanup: remove unused function

Jacques Lucke noreply at git.blender.org
Wed Jul 8 20:41:20 CEST 2020


Commit: 4b85ed819dc0746f6fc46eab1019aab4c4fcf9c9
Author: Jacques Lucke
Date:   Wed Jul 8 20:41:00 2020 +0200
Branches: master
https://developer.blender.org/rB4b85ed819dc0746f6fc46eab1019aab4c4fcf9c9

Cleanup: remove unused function

This is not necessary in C++17 anymore.

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

M	source/blender/blenlib/BLI_span.hh

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

diff --git a/source/blender/blenlib/BLI_span.hh b/source/blender/blenlib/BLI_span.hh
index 3da96f1f107..9688c93ec14 100644
--- a/source/blender/blenlib/BLI_span.hh
+++ b/source/blender/blenlib/BLI_span.hh
@@ -605,14 +605,6 @@ template<typename T> class MutableSpan {
   }
 };
 
-/**
- * Shorthand to make use of automatic template parameter deduction.
- */
-template<typename T> Span<T> ref_c_array(const T *array, uint size)
-{
-  return Span<T>(array, size);
-}
-
 /**
  * Utilities to check that arrays have the same size in debug builds.
  */



More information about the Bf-blender-cvs mailing list