diff options
author | pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-05 03:46:43 (EST) |
---|---|---|
committer | pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-05 03:46:43 (EST) |
commit | f0fe187f841a29675317835723c3591b149fdeb1 (patch) | |
tree | f2d118b12f4dd22818969e890c769304e05367c9 /libopkg/hash_table.c | |
parent | 00d9ca3aaa56c083cfbb051235f3bdcbe6c8c253 (diff) |
Removed a bunch of if(0) and dead code
Applied this semantic patch:
@@
statement S;
@@
- if(0) S
@@
@@
- remove_obsolete_maintainer_scripts(...) {
- ...
-}
@@
@@
- remove_obsolete_maintainer_scripts(...);
@@
identifier i;
@@
-if(i){
-}
git-svn-id: http://opkg.googlecode.com/svn/trunk@262 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/hash_table.c')
-rw-r--r-- | libopkg/hash_table.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libopkg/hash_table.c b/libopkg/hash_table.c index df6ff4f..9e42da0 100644 --- a/libopkg/hash_table.c +++ b/libopkg/hash_table.c @@ -123,11 +123,9 @@ int hash_table_insert(hash_table_t *hash, const char *key, void *value) { int ndx= hash_index(hash, key); hash_entry_t *hash_entry = hash->entries + ndx; - if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Inserting in hash for '%s' \n", __FUNCTION__, key); if (hash_entry->key) { if (strcmp(hash_entry->key, key) == 0) { /* alread in table, update the value */ - if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Value already in hash for '%s' \n", __FUNCTION__, key); hash_entry->data = value; return 0; } else { @@ -136,7 +134,6 @@ int hash_table_insert(hash_table_t *hash, const char *key, void *value) * then add a new entry * before we can hook up the value */ - if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Value already in hash by collision for '%s' \n", __FUNCTION__, key); while (hash_entry->next) { hash_entry = hash_entry->next; if (strcmp(hash_entry->key, key) == 0) { |