[Groonga-commit] groonga/grngo at e35c7a2 [master] Remove unused functions.

Back to archive index

susumu.yata null+****@clear*****
Wed Jul 29 16:18:44 JST 2015


susumu.yata	2015-07-29 16:18:44 +0900 (Wed, 29 Jul 2015)

  New Revision: e35c7a249c257e339eb0c68f1186fedbb9a5d149
  https://github.com/groonga/grngo/commit/e35c7a249c257e339eb0c68f1186fedbb9a5d149

  Message:
    Remove unused functions.

  Modified files:
    grngo.go

  Modified: grngo.go (+0 -18)
===================================================================
--- grngo.go    2015-07-29 08:45:24 +0900 (a21878b)
+++ grngo.go    2015-07-29 16:18:44 +0900 (d4f5ee2)
@@ -191,24 +191,6 @@ func newGrnError(opName string, rc C.grn_rc, db *DB) error {
 		opName, rcString(rc), rcString(ctx.rc), C.GoString(&ctx.errbuf[0]))
 }
 
-// newInvalidKeyTypeError returns an error for data type conflict.
-func newInvalidKeyTypeError(expected, actual DataType) error {
-	return fmt.Errorf("invalid data type: expected = %s, actual = %s", expected, actual)
-}
-
-// newInvalidValueTypeError returns an error for data type conflict.
-func newInvalidValueTypeError(expectedDataType DataType, expectedIsVector bool, actualDataType DataType, actualIsVector bool) error {
-	expected := expectedDataType.String()
-	if expectedIsVector {
-		expected = "[]" + expected
-	}
-	actual := actualDataType.String()
-	if actualIsVector {
-		actual = "[]" + actual
-	}
-	return fmt.Errorf("invalid data type: expected = %s, actual = %s", expected, actual)
-}
-
 // -- Data types --
 
 // GeoPoint represents a coordinate of latitude and longitude.
-------------- next part --------------
HTML����������������������������...
다운로드 



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