Selaa lähdekoodia

codec: decDriver doesn't have a Nil() method - remove across board

Ugorji Nwoke 6 vuotta sitten
vanhempi
commit
ad942d8cb5
5 muutettua tiedostoa jossa 15 lisäystä ja 15 poistoa
  1. 3 3
      codec/binc.go
  2. 3 3
      codec/cbor.go
  3. 3 3
      codec/json.go
  4. 3 3
      codec/msgpack.go
  5. 3 3
      codec/simple.go

+ 3 - 3
codec/binc.go

@@ -437,9 +437,9 @@ func (d *bincDecDriver) advanceNil() (null bool) {
 	return
 }
 
-func (d *bincDecDriver) Nil() bool {
-	return d.fnil
-}
+// func (d *bincDecDriver) Nil() bool {
+// 	return d.fnil
+// }
 
 func (d *bincDecDriver) TryNil() bool {
 	return d.advanceNil()

+ 3 - 3
codec/cbor.go

@@ -378,9 +378,9 @@ func (d *cborDecDriver) ContainerType() (vt valueType) {
 	return valueTypeUnset
 }
 
-func (d *cborDecDriver) Nil() bool {
-	return d.fnil
-}
+// func (d *cborDecDriver) Nil() bool {
+// 	return d.fnil
+// }
 
 func (d *cborDecDriver) TryNil() bool {
 	return d.advanceNil()

+ 3 - 3
codec/json.go

@@ -622,9 +622,9 @@ func (d *jsonDecDriver) TryNil() bool {
 	return false
 }
 
-func (d *jsonDecDriver) Nil() bool {
-	return d.fnil
-}
+// func (d *jsonDecDriver) Nil() bool {
+// 	return d.fnil
+// }
 
 func (d *jsonDecDriver) DecodeBool() (v bool) {
 	d.advance()

+ 3 - 3
codec/msgpack.go

@@ -750,9 +750,9 @@ func (d *msgpackDecDriver) advanceNil() (null bool) {
 	return
 }
 
-func (d *msgpackDecDriver) Nil() bool {
-	return d.fnil
-}
+// func (d *msgpackDecDriver) Nil() bool {
+// 	return d.fnil
+// }
 
 func (d *msgpackDecDriver) ContainerType() (vt valueType) {
 	if !d.bdRead {

+ 3 - 3
codec/simple.go

@@ -244,9 +244,9 @@ func (d *simpleDecDriver) advanceNil() (null bool) {
 	return
 }
 
-func (d *simpleDecDriver) Nil() bool {
-	return d.fnil
-}
+// func (d *simpleDecDriver) Nil() bool {
+// 	return d.fnil
+// }
 
 func (d *simpleDecDriver) ContainerType() (vt valueType) {
 	if !d.bdRead {