|
11 | 11 | static Binding *top_level_binding;
|
12 | 12 | static Object *eval_object(Object *, ErrorHandler, Binding *);
|
13 | 13 | static Object *eval_call(Object *, Object *, ErrorHandler, Binding *);
|
14 |
| -static Object *eval_function(Object *, Object *, ErrorHandler, Binding *); |
15 | 14 | static Object *eval_identifier(Object *, ErrorHandler, Binding *);
|
16 | 15 | static Object *eval_arguments(Object *, ErrorHandler, Binding *);
|
17 | 16 | static Object *eval_arguments_onto(Object *, Object *, ErrorHandler, Binding *);
|
@@ -100,16 +99,6 @@ static Object *eval_call(Object *caller, Object *arguments, ErrorHandler error,
|
100 | 99 | return error(clone(caller), "Identifier expected");
|
101 | 100 | }
|
102 | 101 |
|
103 |
| -static Object *eval_function(Object *identifier, Object *arguments, ErrorHandler error, Binding *binding) { |
104 |
| - Object *function = find(binding, (char *)value(identifier)); |
105 |
| - if (function == NULL) { |
106 |
| - return error(clone(identifier), "Unknown identifier"); |
107 |
| - } |
108 |
| - if (! is_function(function)) { |
109 |
| - } |
110 |
| - return apply(local(function), arguments, error, binding); |
111 |
| -} |
112 |
| - |
113 | 102 | static Object *eval_identifier(Object *identifier, ErrorHandler error, Binding *binding) {
|
114 | 103 | Object *found = find(binding, (char *)value(identifier));
|
115 | 104 | return found != NULL ? clone(found) : clone(identifier);
|
|
0 commit comments