Commit c3191449a4d1720e73a874adb7f633d8ec63776c
1 parent
52904a1c
Refactor `Buffer`: remove unused `copy` method to simplify the class structure.
Showing
2 changed files
with
0 additions
and
13 deletions
include/qpdf/Buffer.hh
libqpdf/Buffer.cc
| ... | ... | @@ -88,17 +88,6 @@ Buffer::operator=(Buffer&& rhs) noexcept |
| 88 | 88 | |
| 89 | 89 | Buffer::~Buffer() = default; |
| 90 | 90 | |
| 91 | -void | |
| 92 | -Buffer::copy(Buffer const& rhs) | |
| 93 | -{ | |
| 94 | - if (this != &rhs) { | |
| 95 | - m = std::make_unique<Members>(rhs.m->size, nullptr, true); | |
| 96 | - if (m->size) { | |
| 97 | - memcpy(m->buf, rhs.m->buf, m->size); | |
| 98 | - } | |
| 99 | - } | |
| 100 | -} | |
| 101 | - | |
| 102 | 91 | size_t |
| 103 | 92 | Buffer::getSize() const |
| 104 | 93 | { | ... | ... |