Eina: Remove eina_prime_table
authorXavi Artigas <xavierartigas@yahoo.es>
Fri, 27 Mar 2020 10:46:24 +0000 (11:46 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 29 Mar 2020 21:25:18 +0000 (06:25 +0900)
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
src/lib/eina/eina_value.c

index 1f0a105..b93e99f 100644 (file)
@@ -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
index 0596b70..c18f369 100644 (file)
@@ -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)
 {