[Groonga-commit] groonga/grnxx at 049e645 [master] Remove a meaningless if block.

Back to archive index

susumu.yata null+****@clear*****
Wed Jul 24 18:40:45 JST 2013


susumu.yata	2013-07-24 18:40:45 +0900 (Wed, 24 Jul 2013)

  New Revision: 049e64594446c6079d58b0d64df1c354755efc72
  https://github.com/groonga/grnxx/commit/049e64594446c6079d58b0d64df1c354755efc72

  Message:
    Remove a meaningless if block.

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

  Modified: lib/grnxx/map/double_array.cpp (+0 -5)
===================================================================
--- lib/grnxx/map/double_array.cpp    2013-07-24 18:37:56 +0900 (a0d2665)
+++ lib/grnxx/map/double_array.cpp    2013-07-24 18:40:45 +0900 (c686746)
@@ -407,11 +407,6 @@ void DoubleArray<Bytes>::create_map(Storage *storage, uint32_t storage_node_id,
     header_->blocks_storage_node_id = blocks_->storage_node_id();
     header_->pool_storage_node_id = pool_->storage_node_id();
     Node * const root_node = reserve_node(ROOT_NODE_ID);
-    if (!root_node) {
-      // TODO
-      storage->unlink_node(storage_node_id_);
-      throw LogicError();
-    }
     root_node[NODE_INVALID_OFFSET - ROOT_NODE_ID].set_is_origin(true);
   } catch (...) {
     storage->unlink_node(storage_node_id_);
-------------- next part --------------
HTML����������������������������...
Download 



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