Skip to content

Commit

Permalink
funcs: Remove unsued string function
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 12, 2021
1 parent dee10db commit 08ec4f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ linters-settings:
- G401
- G501
unused:
go: "1.17"
15 changes: 0 additions & 15 deletions pkg/interp/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"log"
"math/big"
"net/url"
"strings"
"time"

"github.com/wader/fq/format"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 08ec4f0

Please sign in to comment.