1
1
mirror of https://github.com/wader/fq.git synced 2024-12-03 13:46:37 +03:00

postgres: remove unused code

This commit is contained in:
Pavel Safonov 2022-11-07 11:25:14 +03:00
parent 9c7f20b6a0
commit e87d5a6b71

View File

@ -762,27 +762,6 @@ func (d *D) FieldGet(name string) *Value {
}
return nil
}
func (d *D) FieldGetScalar(name string) *scalar.S {
v := d.FieldGet(name)
if v == nil {
return nil
}
sr, ok := v.V.(*scalar.S)
if !ok {
panic("not a scalar value")
}
return sr
}
func (d *D) FieldTryGetScalarActualU(name string) (bool, uint64) {
sr := d.FieldGetScalar(name)
if sr == nil {
return false, 0
}
return true, sr.ActualU()
}
func (d *D) FieldMustGet(name string) *Value {
if v := d.FieldGet(name); v != nil {
return v