[Groonga-commit] groonga/grnxx at f8bbb85 [master] Remove a never-used else block.

Back to archive index

susumu.yata null+****@clear*****
Wed Jul 24 15:55:14 JST 2013


susumu.yata	2013-07-24 15:55:14 +0900 (Wed, 24 Jul 2013)

  New Revision: f8bbb8522b73d84a39ea5d0127550e8338c42977
  https://github.com/groonga/grnxx/commit/f8bbb8522b73d84a39ea5d0127550e8338c42977

  Message:
    Remove a never-used else block.

  Modified files:
    lib/grnxx/map/hash_table.cpp

  Modified: lib/grnxx/map/hash_table.cpp (+0 -3)
===================================================================
--- lib/grnxx/map/hash_table.cpp    2013-07-24 15:55:06 +0900 (119c0c1)
+++ lib/grnxx/map/hash_table.cpp    2013-07-24 15:55:14 +0900 (56171c1)
@@ -208,9 +208,6 @@ bool HashTable<T>::add(KeyArg key, int64_t *key_id) {
       *key_id = *stored_key_id;
     }
     return false;
-  } else if (!stored_key_id) {
-    // Error.
-    return false;
   }
   int64_t next_key_id = pool_->add(normalized_key);
   if (*stored_key_id == TABLE_ENTRY_UNUSED) {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index