aboutsummaryrefslogtreecommitdiff
path: root/starlark/eval.go
diff options
context:
space:
mode:
authoralandonovan <adonovan@google.com>2019-01-03 16:16:33 -0500
committerGitHub <noreply@github.com>2019-01-03 16:16:33 -0500
commit82fc8c1ff39066eae0638c11e78613f0b2e2e612 (patch)
tree46990b1c39550ec9c6b789b186f04c6f83a0b5a3 /starlark/eval.go
parent0ed7e5b3871754bc3174d83ba69eb1c835153ac2 (diff)
downloadstarlark-go-82fc8c1ff39066eae0638c11e78613f0b2e2e612.tar.gz
starlark: remove unused parameters (#88)
Diffstat (limited to 'starlark/eval.go')
-rw-r--r--starlark/eval.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/starlark/eval.go b/starlark/eval.go
index 56d25f2..45587cf 100644
--- a/starlark/eval.go
+++ b/starlark/eval.go
@@ -401,7 +401,7 @@ func listExtend(x *List, y Iterable) {
}
// getAttr implements x.dot.
-func getAttr(fr *Frame, x Value, name string) (Value, error) {
+func getAttr(x Value, name string) (Value, error) {
// field or method?
if x, ok := x.(HasAttrs); ok {
if v, err := x.Attr(name); v != nil || err != nil {
@@ -413,7 +413,7 @@ func getAttr(fr *Frame, x Value, name string) (Value, error) {
}
// setField implements x.name = y.
-func setField(fr *Frame, x Value, name string, y Value) error {
+func setField(x Value, name string, y Value) error {
if x, ok := x.(HasSetField); ok {
err := x.SetField(name, y)
return err
@@ -422,7 +422,7 @@ func setField(fr *Frame, x Value, name string, y Value) error {
}
// getIndex implements x[y].
-func getIndex(fr *Frame, x, y Value) (Value, error) {
+func getIndex(x, y Value) (Value, error) {
switch x := x.(type) {
case Mapping: // dict
z, found, err := x.Get(y)
@@ -453,7 +453,7 @@ func getIndex(fr *Frame, x, y Value) (Value, error) {
}
// setIndex implements x[y] = z.
-func setIndex(fr *Frame, x, y, z Value) error {
+func setIndex(x, y, z Value) error {
switch x := x.(type) {
case HasSetKey:
if err := x.SetKey(y, z); err != nil {