Skip to content

Commit

Permalink
golinter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
refaktor committed Jun 5, 2024
1 parent 4e037fc commit f2086be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 46 deletions.
39 changes: 0 additions & 39 deletions current/builtins_current.go

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
github.com/blevesearch/bleve/v2 v2.4.0
github.com/blevesearch/bleve_index_api v1.1.6
github.com/drewlanenga/govector v0.0.0-20220726163947-b958ac08bc93
github.com/fsnotify/fsnotify v1.7.0
github.com/gliderlabs/ssh v0.3.7
github.com/go-gomail/gomail v0.0.0-20160411212932-81ebce5c23df
github.com/go-sql-driver/mysql v1.8.1
Expand Down Expand Up @@ -74,7 +75,6 @@ require (
github.com/blevesearch/zapx/v15 v15.3.13 // indirect
github.com/blevesearch/zapx/v16 v16.0.12 // indirect
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/gobwas/httphead v0.1.0 // indirect
github.com/gobwas/pool v0.2.1 // indirect
Expand Down
8 changes: 2 additions & 6 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"sort"
"strings"

"golang.org/x/term"

"github.com/refaktor/rye/contrib"
"github.com/refaktor/rye/current"
"github.com/refaktor/rye/env"
"github.com/refaktor/rye/evaldo"
"github.com/refaktor/rye/loader"
"github.com/refaktor/rye/util"
"golang.org/x/term"
)

var (
Expand Down Expand Up @@ -187,7 +187,6 @@ func main_ryk() {
es := env.NewProgramState(block.(env.Block).Series, genv)
evaldo.RegisterBuiltins(es)
contrib.RegisterBuiltins(es, &evaldo.BuiltinNames)
current.RegisterBuiltins(es)
evaldo.EvalBlock(es)

if len(os.Args) >= 4 {
Expand Down Expand Up @@ -438,7 +437,6 @@ func main_rye_file_OLD(file string, sig bool, subc bool, interactive bool, code
es := env.NewProgramState(block.(env.Block).Series, genv)
evaldo.RegisterBuiltins(es)
contrib.RegisterBuiltins(es, &evaldo.BuiltinNames)
current.RegisterBuiltins(es)

if subc {
ctx := es.Ctx
Expand Down Expand Up @@ -467,7 +465,6 @@ func main_cgi_file(file string, sig bool) {
es := env.NewProgramState(block.(env.Block).Series, genv)
evaldo.RegisterBuiltins(es)
contrib.RegisterBuiltins(es, &evaldo.BuiltinNames)
current.RegisterBuiltins(es)

evaldo.EvalBlock(es)
env.SetValue(es, "w", *env.NewNative(es.Idx, w, "Go-server-response-writer"))
Expand All @@ -486,7 +483,6 @@ func main_cgi_file(file string, sig bool) {
es = env.AddToProgramState(es, block.(env.Block).Series, genv)
evaldo.RegisterBuiltins(es)
contrib.RegisterBuiltins(es, &evaldo.BuiltinNames)
current.RegisterBuiltins(es)

evaldo.EvalBlock(es)
evaldo.MaybeDisplayFailureOrError(es, genv)
Expand Down

0 comments on commit f2086be

Please sign in to comment.