[Groonga-commit] groonga/groonga at 0fb3889 [master] egn: remove old comments

Back to archive index

susumu.yata null+****@clear*****
Mon Jul 6 15:29:39 JST 2015


susumu.yata	2015-07-06 15:29:39 +0900 (Mon, 06 Jul 2015)

  New Revision: 0fb3889bc6be8fe3e29be564a2823827ae8c97ef
  https://github.com/groonga/groonga/commit/0fb3889bc6be8fe3e29be564a2823827ae8c97ef

  Message:
    egn: remove old comments

  Modified files:
    lib/grn_egn.hpp

  Modified: lib/grn_egn.hpp (+0 -49)
===================================================================
--- lib/grn_egn.hpp    2015-07-06 14:39:03 +0900 (2158692)
+++ lib/grn_egn.hpp    2015-07-06 15:29:39 +0900 (6c4ccec)
@@ -41,55 +41,6 @@ typedef grn_egn_id ID;
 typedef grn_egn_score Score;
 typedef grn_egn_record Record;
 
-//typedef grn_egn_bool Bool;
-//typedef grn_egn_int Int;
-//typedef grn_egn_float Float;
-//typedef grn_egn_time Time;
-//typedef grn_egn_text Text;
-//typedef grn_egn_geo_point GeoPoint;
-
-//inline bool operator==(const Text &lhs, const Text &rhs) {
-//  if (lhs.size != rhs.size) {
-//    return false;
-//  }
-//  return std::memcmp(lhs.ptr, rhs.ptr, lhs.size) == 0;
-//}
-//inline bool operator!=(const Text &lhs, const Text &rhs) {
-//  if (lhs.size != rhs.size) {
-//    return true;
-//  }
-//  return std::memcmp(lhs.ptr, rhs.ptr, lhs.size) != 0;
-//}
-//inline bool operator<(const Text &lhs, const Text &rhs) {
-//  size_t min_size = (lhs.size < rhs.size) ? lhs.size : rhs.size;
-//  int result = std::memcmp(lhs.ptr, rhs.ptr, min_size);
-//  if (result == 0) {
-//    return lhs.size < rhs.size;
-//  }
-//  return result < 0;
-//}
-//inline bool operator<=(const Text &lhs, const Text &rhs) {
-//  size_t min_size = (lhs.size < rhs.size) ? lhs.size : rhs.size;
-//  int result = std::memcmp(lhs.ptr, rhs.ptr, min_size);
-//  if (result == 0) {
-//    return lhs.size <= rhs.size;
-//  }
-//  return result <= 0;
-//}
-//inline bool operator>(const Text &lhs, const Text &rhs) {
-//  return rhs < lhs;
-//}
-//inline bool operator>=(const Text &lhs, const Text &rhs) {
-//  return rhs <= lhs;
-//}
-
-//inline bool operator==(const GeoPoint &lhs, const GeoPoint &rhs) {
-//  return (lhs.latitude == rhs.latitude) && (lhs.longitude == rhs.longitude);
-//}
-//inline bool operator!=(const GeoPoint &lhs, const GeoPoint &rhs) {
-//  return (lhs.latitude != rhs.latitude) || (lhs.longitude != rhs.longitude);
-//}
-
 struct Bool {
   typedef grn_egn_bool Raw;
   Raw raw;
-------------- next part --------------
HTML����������������������������...
Download 



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