summaryrefslogtreecommitdiff
path: root/src/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scope.c')
-rw-r--r--src/scope.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/scope.c b/src/scope.c
index afb9d5c..f2b9f79 100644
--- a/src/scope.c
+++ b/src/scope.c
@@ -1,20 +1,3 @@
#include <stdlib.h>
#include "scope.h"
#include "hashtable.h"
-
-scope_t* init_scope(scope_t parent) {
- scope_t* scope = malloc(sizeof(scope_t));
- scope->hashtable = init_hashtable(1000);
- *(scope->parent) = parent;
- return scope;
-}
-pair_t* get_pair_global(scope_t* scope, char* key) {
- while (scope->parent != NULL) {
- pair_t* pair = hashtable_get_pair(scope->hashtable, key);
- if (pair != NULL) {
- return pair;
- }
- scope = scope->parent;
- }
- return NULL;
-}