susumu.yata
null+****@clear*****
Thu May 7 11:56:52 JST 2015
susumu.yata 2015-05-07 11:56:52 +0900 (Thu, 07 May 2015) New Revision: a677d483ada6e13e66ae22f0c1c5d065c98bf165 https://github.com/groonga/grnxx/commit/a677d483ada6e13e66ae22f0c1c5d065c98bf165 Message: Gnx: comment out unused data types. Modified files: go3/gnx/gnx.go Modified: go3/gnx/gnx.go (+25 -25) =================================================================== --- go3/gnx/gnx.go 2015-05-07 11:55:15 +0900 (7198302) +++ go3/gnx/gnx.go 2015-05-07 11:56:52 +0900 (67ab419) @@ -19,11 +19,11 @@ type Float float64 type GeoPoint struct{ Latitude, Longitude int32 } type Text []byte -type BoolVector []Bool -type IntVector []Int -type FloatVector []Float -type GeoPointVector []GeoPoint -type TextVector []Text +//type BoolVector []Bool +//type IntVector []Int +//type FloatVector []Float +//type GeoPointVector []GeoPoint +//type TextVector []Text const ( True = Bool(3) @@ -36,11 +36,11 @@ func NullFloat() Float { return Float(math.NaN()) } func NullGeoPoint() GeoPoint { return GeoPoint{math.MinInt32, math.MinInt32} } func NullText() Text { return nil } -func NullBoolVector() BoolVector { return nil } -func NullIntVector() IntVector { return nil } -func NullFloatVector() FloatVector { return nil } -func NullGeoPointVector() GeoPointVector { return nil } -func NullTextVector() TextVector { return nil } +//func NullBoolVector() BoolVector { return nil } +//func NullIntVector() IntVector { return nil } +//func NullFloatVector() FloatVector { return nil } +//func NullGeoPointVector() GeoPointVector { return nil } +//func NullTextVector() TextVector { return nil } type TypeID int @@ -51,11 +51,11 @@ const ( FloatID GeoPointID TextID - BoolVectorID - IntVectorID - FloatVectorID - GeoPointVectorID - TextVectorID +// BoolVectorID +// IntVectorID +// FloatVectorID +// GeoPointVectorID +// TextVectorID ) func (id TypeID) String() string { @@ -72,16 +72,16 @@ func (id TypeID) String() string { return "GeoPoint" case TextID: return "Text" - case BoolVectorID: - return "BoolVector" - case IntVectorID: - return "IntVector" - case FloatVectorID: - return "FloatVector" - case GeoPointVectorID: - return "GeoPointVector" - case TextVectorID: - return "TextVector" +// case BoolVectorID: +// return "BoolVector" +// case IntVectorID: +// return "IntVector" +// case FloatVectorID: +// return "FloatVector" +// case GeoPointVectorID: +// return "GeoPointVector" +// case TextVectorID: +// return "TextVector" default: return fmt.Sprintf("TypeID(%d)", id) } -------------- next part -------------- HTML����������������������������...Download