Skip to content

Commit

Permalink
Remove impl-based MemSlice constructor.
Browse files Browse the repository at this point in the history
The last uses of it have been removed from the codebase.

PiperOrigin-RevId: 702751288
  • Loading branch information
vasilvv authored and copybara-github committed Dec 4, 2024
1 parent 0c3ea8e commit b641e2b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions quiche/common/platform/api/quiche_mem_slice.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ class QUICHE_EXPORT QuicheMemSlice {
quiche::SingleUseCallback<void(const char*)> done_callback)
: impl_(buffer, length, std::move(done_callback)) {}

// Ensures the use of the in-place constructor (below) is intentional.
struct InPlace {};

// Constructs a QuicheMemSlice by constructing |impl_| in-place.
template <typename... Args>
explicit QuicheMemSlice(InPlace, Args&&... args)
: impl_{std::forward<Args>(args)...} {}

QuicheMemSlice(const QuicheMemSlice& other) = delete;
QuicheMemSlice& operator=(const QuicheMemSlice& other) = delete;

Expand Down

0 comments on commit b641e2b

Please sign in to comment.