general cleanups. Removed lots of unused code and redundant error checks

This commit is contained in:
Francesco Cozzuto
2022-08-24 16:46:32 +02:00
parent 71e8a9e4cb
commit cd74dda4a9
29 changed files with 333 additions and 813 deletions
+2 -1
View File
@@ -116,7 +116,8 @@ static Object *select_(Object *self, Object *key, Heap *heap, Error *error)
if(!Object_IsString(key))
return NULL;
const char *name = Object_ToString(key, NULL, heap, error);
const char *name = Object_GetString(key, NULL);
assert(name != NULL);
if(map->slots == NULL)
return NULL;