diff options
Diffstat (limited to 'qpdf/test_large_file.cc')
-rw-r--r-- | qpdf/test_large_file.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/qpdf/test_large_file.cc b/qpdf/test_large_file.cc index fc2c7bbc..f54adb33 100644 --- a/qpdf/test_large_file.cc +++ b/qpdf/test_large_file.cc @@ -109,7 +109,6 @@ class ImageProvider: public QPDFObjectHandle::StreamDataProvider virtual ~ImageProvider(); virtual void provideStreamData(int objid, int generation, Pipeline* pipeline); - size_t getLength() const; private: int n; @@ -142,12 +141,6 @@ ImageProvider::provideStreamData(int objid, int generation, pipeline->finish(); } -size_t -ImageProvider::getLength() const -{ - return width * height; -} - void usage() { std::cerr << "Usage: " << whoami << " {read|write} {large|small} outfile" @@ -229,8 +222,7 @@ static void create_pdf(char const* filename) PointerHolder<QPDFObjectHandle::StreamDataProvider> provider(p); image.replaceStreamData(provider, QPDFObjectHandle::newNull(), - QPDFObjectHandle::newNull(), - p->getLength()); + QPDFObjectHandle::newNull()); QPDFObjectHandle xobject = QPDFObjectHandle::newDictionary(); xobject.replaceKey("/Im1", image); |