Cleanup and delete dead code

This commit is contained in:
Felix Brendel
2019-11-10 15:29:21 +01:00
parent bb1cfcd3c3
commit 8dbff42bdf
14 changed files with 152 additions and 256 deletions
+1 -13
View File
@@ -2,7 +2,7 @@ proc create_source_code_location(String* file, int line, int col) -> Source_Code
if (!file)
return nullptr;
Source_Code_Location* ret = new(Source_Code_Location);
Source_Code_Location* ret = (Source_Code_Location*)malloc(sizeof(Source_Code_Location));
ret->file = file;
ret->line = line;
ret->column = col;
@@ -28,18 +28,6 @@ proc Lisp_Object_Type_to_string(Lisp_Object_Type type) -> const char* {
return "unknown";
}
proc append_to_positional_argument_list(Positional_Arguments* args, Lisp_Object* sym) -> void {
args->symbols.append(sym);
}
proc append_to_keyword_argument_list(Keyword_Arguments* args,
Lisp_Object* keyword,
Lisp_Object* default_value) -> void
{
args->keywords.append(keyword);
args->values.append(default_value);
}
Lisp_Object::~Lisp_Object() {
free(sourceCodeLocation);
sourceCodeLocation = 0;