Skip to content

Commit

Permalink
var: Remove unused anonymous field
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Nov 3, 2024
1 parent 7ae3484 commit 908df5f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion flamingo/flamingo.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ struct flamingo_val_t {
};

struct flamingo_var_t {
bool anonymous;
bool is_static;

char* key;
Expand Down
4 changes: 0 additions & 4 deletions flamingo/scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ static flamingo_var_t* scope_shallow_find_var(flamingo_scope_t* scope, char cons
for (size_t i = 0; i < scope->vars_size; i++) {
flamingo_var_t* const var = &scope->vars[i];

if (var->anonymous) {
continue;
}

if (var->key_size == key_size && memcmp(var->key, key, key_size) == 0) {
return var;
}
Expand Down
2 changes: 2 additions & 0 deletions flamingo/val.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ static bool val_eq(flamingo_val_t* x, flamingo_val_t* y) {
case FLAMINGO_VAL_KIND_COUNT:
return false;
}

return false; // XXX To make GCC happy.
}

static void val_free(flamingo_val_t* val) {
Expand Down

0 comments on commit 908df5f

Please sign in to comment.