Skip to content

Commit

Permalink
delete extra code - maybe i need to check to this point later
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Dec 28, 2024
1 parent 5f62640 commit a40f864
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/generator_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ void generator_code_layout_value(hashmap_t *attrs, hashmap_t *new_attrs,
return;
}

// comment it mate
// if (attribute->final_key == NULL) {
// attribute->final_key = string_strdup(attribute->key);
// }

if (attribute->final_value == NULL) {
attribute->final_value = string_strdup(
cast(ast_value_t *, attribute->values->data[0])->data.string_value);
Expand Down Expand Up @@ -492,11 +487,6 @@ void generator_code_head_meta_children(generator_t *generator,
node_block->attributes,
attribute);

// comment it mate
// if (attribute->final_key == NULL) {
// attribute->final_key = string_strdup(attribute->key);
// }

string_append_str(
generator->css,
attribute->final_key); // TODO: Why name lowercase
Expand Down Expand Up @@ -761,11 +751,6 @@ string_t *generator_code_layout_attributes(generator_t *generator,
string_append_char(html_attributes, ' ');
}

// comment it mate
// if (attribute->final_key == NULL) {
// attribute->final_key = string_strdup(attribute->key);
// }

string_append_str(
html_attributes,
attribute->final_key); // TODO: Why name lowercase
Expand Down Expand Up @@ -1011,12 +996,6 @@ string_t *generator_code_layout_attributes(generator_t *generator,
string_append_char(generator->media_css, ';');
}

// comment it mate
// if (attribute->final_key == NULL) {
// attribute->final_key =
// string_strdup(attribute->key);
// }

string_append_str(generator->media_css,
attribute->final_key);
string_append_str(generator->media_css, ":3");
Expand Down

0 comments on commit a40f864

Please sign in to comment.