Remove ReturnValue struct since we don't need it anymore.
@@ -15,7 +15,6 @@ const (
stringObj = "STRING"
booleanObj = "BOOLEAN"
nullObj = "NULL"
- returnValueObj = "RETURN_VALUE"
errorObj = "ERROR"
methodObj = "METHOD"
classObj = "CLASS"
@@ -55,18 +54,6 @@ type Pointer struct {
Target Object
}
-type ReturnValue struct {
- Value Object
-}
-
-func (r *ReturnValue) Type() objectType {
- return returnValueObj
-}
-
-func (r *ReturnValue) Inspect() string {
- return r.Value.Inspect()
-}
-
func checkArgumentLen(args []Object, class Class, method_name string) *Error {
if len(args) > 1 {
return &Error{Message: fmt.Sprintf("Too many arguments for %s#%s", class.ReturnName(), method_name)}
