Skip to content

Commit

Permalink
manual delete for PointerFreeGC is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jianlingzhong committed Dec 29, 2024
1 parent 1ed299f commit 84a7fc9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler+runtime/src/cpp/jank/util/string_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace jank::util
auto const new_capacity{ std::bit_ceil(required) };
auto const new_data{ new(PointerFreeGC) string_builder::value_type[new_capacity] };
string_builder::traits_type::copy(new_data, sb.buffer, sb.pos);
delete sb.buffer;
sb.buffer = new_data;
sb.capacity = new_capacity;
}
Expand Down Expand Up @@ -44,7 +43,6 @@ namespace jank::util

string_builder::~string_builder()
{
delete buffer;
}

string_builder &string_builder::operator()(native_bool const d) &
Expand Down

0 comments on commit 84a7fc9

Please sign in to comment.