2
0

Remove unused function

This commit is contained in:
Jack Christensen
2017-03-11 16:14:13 -06:00
parent fa1c81fec4
commit f10ed4ff5d
-14
View File
@@ -901,20 +901,6 @@ func stripNamedType(val *reflect.Value) (interface{}, bool) {
return nil, false
}
func decodeByOID(vr *ValueReader) (interface{}, error) {
switch vr.Type().DataType {
case Int2OID, Int4OID, Int8OID:
n := decodeInt(vr)
return n, vr.Err()
case BoolOID:
b := decodeBool(vr)
return b, vr.Err()
default:
buf := vr.ReadBytes(vr.Len())
return buf, vr.Err()
}
}
// Decode decodes from vr into d. d must be a pointer. This allows
// implementations of the Decoder interface to delegate the actual work of
// decoding to the built-in functionality.