summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2020-03-27 11:46:24 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2020-03-27 13:33:04 +0100
commit80acb338984e4fa20de8833ddd4184fea520bfaa (patch)
tree91c1d7312e89dfd0af89a91410cb7befa3856a90
parent0fa18c086632ec2a37c94fa6529a00d9be3202cb (diff)
downloadefl-80acb338984e4fa20de8833ddd4184fea520bfaa.tar.gz
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
-rw-r--r--src/lib/eina/eina_types.h2
-rw-r--r--src/lib/eina/eina_value.c7
2 files changed, 0 insertions, 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)
{