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

funcs: Remove unsued string function

This commit is contained in:
Mattias Wadman 2021-08-28 15:48:58 +02:00
parent dee10dbb78
commit 08ec4f0eeb
2 changed files with 0 additions and 16 deletions

View File

@ -34,4 +34,3 @@ linters-settings:
- G401
- G501
unused:
go: "1.17"

View File

@ -17,7 +17,6 @@ import (
"log"
"math/big"
"net/url"
"strings"
"time"
"github.com/wader/fq/format"
@ -613,20 +612,6 @@ func (i *Interp) hexdump(c interface{}, a []interface{}) gojq.Iter {
return gojq.NewIter()
}
func (i *Interp) string_(c interface{}, a []interface{}) interface{} {
bb, err := toBuffer(c)
if err != nil {
return err
}
sb := &strings.Builder{}
if _, err := io.Copy(sb, bb); err != nil {
return err
}
return sb.String()
}
func (i *Interp) bytes(c interface{}, a []interface{}) interface{} {
bb, err := toBuffer(c)
if err != nil {