mirror of
https://github.com/wader/fq.git
synced 2024-12-04 20:02:16 +03:00
postgres: remove unused code
This commit is contained in:
parent
9c7f20b6a0
commit
e87d5a6b71
@ -762,27 +762,6 @@ func (d *D) FieldGet(name string) *Value {
|
|||||||
}
|
}
|
||||||
return nil
|
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 {
|
func (d *D) FieldMustGet(name string) *Value {
|
||||||
if v := d.FieldGet(name); v != nil {
|
if v := d.FieldGet(name); v != nil {
|
||||||
return v
|
return v
|
||||||
|
Loading…
Reference in New Issue
Block a user