summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-03-22 17:30:29 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-04-03 23:57:45 +0100
commit4285f0dfa4ac00aafd7e08f5a9894622f1d6af1c (patch)
treee4c80c54157e0ab0e8b9ff7c72d62004d85e366c /src/gui/painting
parent73003f3b41edb7f363a2492ad349899c54a2b890 (diff)
QPdf: remove two unused functions
Never called from anywhere. Change-Id: I76480586b5eca6b450a6cd36429cdc6e264849cc Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qpdf.cpp7
-rw-r--r--src/gui/painting/qpdf_p.h4
2 files changed, 0 insertions, 11 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp
index 98a6ca3d4a..85d3874f94 100644
--- a/src/gui/painting/qpdf.cpp
+++ b/src/gui/painting/qpdf.cpp
@@ -270,13 +270,6 @@ namespace QPdf {
dev->open(QIODevice::ReadWrite | QIODevice::Truncate);
}
- void ByteStream::constructor_helper(QByteArray *ba)
- {
- delete dev;
- dev = new QBuffer(ba);
- dev->open(QIODevice::ReadWrite);
- }
-
void ByteStream::prepareBuffer()
{
Q_ASSERT(!dev->isSequential());
diff --git a/src/gui/painting/qpdf_p.h b/src/gui/painting/qpdf_p.h
index b97d0df31f..c447238bf6 100644
--- a/src/gui/painting/qpdf_p.h
+++ b/src/gui/painting/qpdf_p.h
@@ -60,10 +60,6 @@ namespace QPdf {
static inline int maxMemorySize() { return 100000000; }
static inline int chunkSize() { return 10000000; }
- protected:
- void constructor_helper(QIODevice *dev);
- void constructor_helper(QByteArray *ba);
-
private:
void prepareBuffer();