[Groonga-commit] groonga/grnxx at ecb9b40 [master] Remove an argument "error" from Column::get_index().

Back to archive index

susumu.yata null+****@clear*****
Fri Jul 4 18:14:18 JST 2014


susumu.yata	2014-07-04 18:14:18 +0900 (Fri, 04 Jul 2014)

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

  Message:
    Remove an argument "error" from Column::get_index().

  Modified files:
    include/grnxx/column.hpp
    lib/grnxx/column.cpp

  Modified: include/grnxx/column.hpp (+6 -1)
===================================================================
--- include/grnxx/column.hpp    2014-07-04 18:12:50 +0900 (4b0652b)
+++ include/grnxx/column.hpp    2014-07-04 18:14:18 +0900 (de6acd3)
@@ -88,10 +88,15 @@ class Column {
 
   // Get an index identified by "index_id".
   //
+  // If "index_id" is invalid, the result is undefined.
+  //
   // Returns a pointer to the index on success.
   // On failure, returns nullptr and stores error information into "*error" if
   // "error" != nullptr.
-  Index *get_index(Error *error, size_t index_id) const;
+  Index *get_index(size_t index_id) const {
+    // TODO
+    return nullptr;
+  }
 
   // Find an index named "name".
   //

  Modified: lib/grnxx/column.cpp (+0 -6)
===================================================================
--- lib/grnxx/column.cpp    2014-07-04 18:12:50 +0900 (8bd9ac9)
+++ lib/grnxx/column.cpp    2014-07-04 18:14:18 +0900 (882b12b)
@@ -41,12 +41,6 @@ bool Column::reorder_index(Error *error,
   return false;
 }
 
-Index *Column::get_index(Error *error, size_t index_id) const {
-  // TODO: Index is not supported yet.
-  GRNXX_ERROR_SET(error, NOT_SUPPORTED_YET, "Not suported yet");
-  return nullptr;
-}
-
 Index *Column::find_index(Error *error, String name) const {
   // TODO: Index is not supported yet.
   GRNXX_ERROR_SET(error, NOT_SUPPORTED_YET, "Not suported yet");
-------------- next part --------------
HTML����������������������������...
Download 



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