Skip to content

Commit

Permalink
Remove unnecessary write_file_trace
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Jan 3, 2025
1 parent 31e3f82 commit 716ff53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions include/glaze/trace/trace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,4 @@ namespace glz
using T = trace;
static constexpr auto value = object(&T::traceEvents, &T::displayTimeUnit);
};

template <opts Opts = opts{}>
[[nodiscard]] error_ctx write_file_trace(const trace& result, const std::string& file_name, auto&& buffer) noexcept
{
const auto ec = write<set_json<Opts>()>(result, buffer);
if (bool(ec)) [[unlikely]] {
return ec;
}
return {buffer_to_file(buffer, file_name)};
}
}
2 changes: 1 addition & 1 deletion tests/beve_test/beve_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ int main()
container_types();

trace.end("binary_test");
const auto ec = glz::write_file_trace(trace, "binary_test.trace.json", std::string{});
const auto ec = glz::write_file_json(trace, "binary_test.trace.json", std::string{});
if (ec) {
std::cerr << "trace output failed\n";
}
Expand Down

0 comments on commit 716ff53

Please sign in to comment.