Skip to content

Commit fc091b1

Browse files
committed
Cleanup
1 parent a120b20 commit fc091b1

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

include/openPMD/auxiliary/Memory.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ namespace auxiliary
7474
std::any m_buffer;
7575

7676
WriteBuffer();
77-
7877
WriteBuffer(std::shared_ptr<void const> ptr);
79-
// WriteBuffer(std::shared_ptr<void> const &ptr);
80-
8178
WriteBuffer(UniquePtrWithLambda<void> ptr);
8279

8380
WriteBuffer(WriteBuffer &&) noexcept;
@@ -86,8 +83,6 @@ namespace auxiliary
8683
WriteBuffer &operator=(WriteBuffer const &) = delete;
8784

8885
WriteBuffer const &operator=(std::shared_ptr<void const> ptr);
89-
// WriteBuffer const &operator=(std::shared_ptr<void> const &ptr);
90-
9186
WriteBuffer const &operator=(UniquePtrWithLambda<void> ptr);
9287

9388
void const *get() const;

include/openPMD/auxiliary/Memory_internal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2017-2021 Fabian Koller
1+
/* Copyright 2025 Franz Poeschel
22
*
33
* This file is part of openPMD-api.
44
*

src/auxiliary/Memory.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,9 @@ auto WriteBuffer::MovableUniquePtr::release() -> UniquePtrWithLambda<void>
193193

194194
WriteBuffer::WriteBuffer() : m_buffer(std::make_any<MovableUniquePtr>())
195195
{}
196-
197196
WriteBuffer::WriteBuffer(std::shared_ptr<void const> ptr)
198197
: m_buffer(std::make_any<WriteBufferTypes>(std::move(ptr)))
199198
{}
200-
// WriteBuffer::WriteBuffer(std::shared_ptr<void> const &ptr)
201-
// : WriteBuffer{std::static_pointer_cast<void const>(ptr)}
202-
// {}
203-
204199
WriteBuffer::WriteBuffer(UniquePtrWithLambda<void> ptr)
205200
: m_buffer(
206201
std::make_any<WriteBufferTypes>(MovableUniquePtr(std::move(ptr))))
@@ -214,12 +209,6 @@ WriteBuffer const &WriteBuffer::operator=(std::shared_ptr<void const> ptr)
214209
m_buffer = std::make_any<WriteBufferTypes>(std::move(ptr));
215210
return *this;
216211
}
217-
// WriteBuffer const &WriteBuffer::operator=(std::shared_ptr<void> const &ptr)
218-
// {
219-
// operator=(std::static_pointer_cast<void const>(ptr));
220-
// return *this;
221-
// }
222-
223212
WriteBuffer const &WriteBuffer::operator=(UniquePtrWithLambda<void> ptr)
224213
{
225214
m_buffer =

0 commit comments

Comments
 (0)