Skip to content

Commit

Permalink
refactor(ada_c/ada_free_owned_string): remove unused code
Browse files Browse the repository at this point in the history
Setting parameters of an object passed by value [do nothing even at GCC Og level](https://godbolt.org/z/M8exqe8oh)
  • Loading branch information
pratikpc authored May 20, 2024
1 parent 1227f60 commit d63a3f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ada_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ ada_owned_string ada_get_origin(ada_url result) noexcept {

void ada_free_owned_string(ada_owned_string owned) noexcept {
delete[] owned.data;
owned.data = nullptr;
owned.length = 0;
}

ada_string ada_get_href(ada_url result) noexcept {
Expand Down

0 comments on commit d63a3f7

Please sign in to comment.