xartigas pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=80acb338984e4fa20de8833ddd4184fea520bfaa

commit 80acb338984e4fa20de8833ddd4184fea520bfaa
Author: Xavi Artigas <[email protected]>
Date:   Fri Mar 27 11:46:24 2020 +0100

    Eina: Remove eina_prime_table
    
    This has been present since ancient times and no current uses have been 
detected.
    It's an array containing SOME prime numbers without a terminator, so the 
caller
    needs to know the array length in advance.
    This does not look very useful (or usable) and therefore it has been 
decided in
    public IRC session to send this thing to hell.
    Witnesses: raster stefan_schmidt bu5hm4n
---
 src/lib/eina/eina_types.h | 2 --
 src/lib/eina/eina_value.c | 7 -------
 2 files changed, 9 deletions(-)

diff --git a/src/lib/eina/eina_types.h b/src/lib/eina/eina_types.h
index 1f0a1053a1..b93e99f483 100644
--- a/src/lib/eina/eina_types.h
+++ b/src/lib/eina/eina_types.h
@@ -538,8 +538,6 @@ typedef unsigned char Eina_Bool;
  */
 #define EINA_TRUE  ((Eina_Bool)1)
 
-EAPI extern const unsigned int eina_prime_table[];
-
 /**
  * @typedef Eina_Compare_Cb
  * Function used in functions using sorting. It compares @p data1 and
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c
index 0596b70e9f..c18f369006 100644
--- a/src/lib/eina/eina_value.c
+++ b/src/lib/eina/eina_value.c
@@ -5620,13 +5620,6 @@ EAPI const Eina_Value_Blob_Operations 
*EINA_VALUE_BLOB_OPERATIONS_MALLOC = NULL;
 EAPI const Eina_Value_Struct_Operations 
*EINA_VALUE_STRUCT_OPERATIONS_BINSEARCH = NULL;
 EAPI const Eina_Value_Struct_Operations 
*EINA_VALUE_STRUCT_OPERATIONS_STRINGSHARE = NULL;
 
-EAPI const unsigned int eina_prime_table[] =
-{
-   17, 31, 61, 127, 257, 509, 1021,
-   2053, 4093, 8191, 16381, 32771, 65537, 131071, 262147, 524287, 1048573,
-   2097143, 4194301, 8388617, 16777213
-};
-
 EAPI Eina_Value *
 eina_value_new(const Eina_Value_Type *type)
 {

-- 


Reply via email to