2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00

Remove unused include directives

This commit is contained in:
m-holger 2023-05-20 11:25:58 +01:00
parent a6d7b79e65
commit 7f043fe88e
56 changed files with 0 additions and 83 deletions

View File

@ -6,13 +6,11 @@
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <qpdf/Pl_StdioFile.hh>
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFObjectHandle.hh>
#include <qpdf/QPDFPageDocumentHelper.hh>
#include <qpdf/QPDFPageObjectHelper.hh>
#include <qpdf/QUtil.hh>
static char const* whoami = nullptr;

View File

@ -12,13 +12,11 @@
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFObjectHandle.hh>
#include <qpdf/QPDFPageDocumentHelper.hh>
#include <qpdf/QPDFPageObjectHelper.hh>
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QUtil.hh>
#include <iostream>
#include <memory>
#include <stdlib.h>
#include <string.h>
static char const* whoami = nullptr;

View File

@ -9,12 +9,10 @@
#include <deque>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFObjectHandle.hh>
#include <qpdf/QPDFPageDocumentHelper.hh>
#include <qpdf/QPDFPageObjectHelper.hh>
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QUtil.hh>

View File

@ -3,7 +3,6 @@
#include <qpdf/QPDFNumberTreeObjectHelper.hh>
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QUtil.hh>
#include <cstring>
#include <iostream>
static char const* whoami = nullptr;

View File

@ -5,7 +5,6 @@
#include <qpdf/QUtil.hh>
#include <iostream>
#include <stdlib.h>
#include <string.h>
// This program demonstrates use of form XObjects to overlay a page
// from one file onto all pages of another file. The qpdf program's

View File

@ -1,6 +1,5 @@
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <qpdf/QIntC.hh>
#include <qpdf/QPDF.hh>

View File

@ -4,9 +4,7 @@
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QUtil.hh>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char const* whoami = nullptr;

View File

@ -1,8 +1,6 @@
#include <qpdf/QIntC.hh>
#include <qpdf/QPDFJob.hh>
#include <qpdf/QUtil.hh>
#include <cstring>
#include <iostream>
// This program is a simple demonstration of different ways to use the

View File

@ -1,4 +1,3 @@
#include <qpdf/Constants.h>
#include <qpdf/qpdfjob-c.h>
#include <qpdf/qpdflogger-c.h>

View File

@ -4,7 +4,6 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
// This example demonstrates how we can use the QPDFJob createQPDF and writeQPDF

View File

@ -2,9 +2,7 @@
#include <qpdf/QIntC.hh>
#include <algorithm>
#include <limits>
#include <sstream>
#include <stdexcept>
#include <string.h>
BufferInputSource::BufferInputSource(

View File

@ -4,10 +4,6 @@
#include <qpdf/QPDFCryptoProvider.hh>
#include <qpdf/QUtil.hh>
#include <errno.h>
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
MD5::MD5()

View File

@ -1,7 +1,5 @@
#include <qpdf/Pipeline.hh>
#include <qpdf/QUtil.hh>
#include <cstring>
#include <stdexcept>

View File

@ -5,7 +5,6 @@
#include <qpdf/QUtil.hh>
#include <cstring>
#include <stdexcept>
#include <stdlib.h>
#include <string>
bool Pl_AES_PDF::use_static_iv = false;

View File

@ -3,7 +3,6 @@
#include <qpdf/QTC.hh>
#include <ctype.h>
#include <stdexcept>
#include <string.h>
Pl_ASCIIHexDecoder::Pl_ASCIIHexDecoder(char const* identifier, Pipeline* next) :
Pipeline(identifier, next),

View File

@ -2,7 +2,6 @@
#include <qpdf/QIntC.hh>
#include <qpdf/QUtil.hh>
#include <algorithm>
#include <cstring>
#include <stdexcept>

View File

@ -2,12 +2,9 @@
#include <qpdf/QIntC.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh>
#include <cstring>
#include <setjmp.h>
#include <stdexcept>
#include <stdlib.h>
#include <string>
#if BITS_IN_JSAMPLE != 8

View File

@ -1,7 +1,5 @@
#include <qpdf/Pl_Function.hh>
#include <qpdf/QUtil.hh>
#include <errno.h>
#include <stdexcept>
Pl_Function::Members::Members(writer_t fn) :

View File

@ -1,7 +1,5 @@
#include <qpdf/Pl_OStream.hh>
#include <qpdf/QUtil.hh>
#include <errno.h>
#include <stdexcept>
Pl_OStream::Members::Members(std::ostream& os) :

View File

@ -2,9 +2,7 @@
#include <qpdf/BufferInputSource.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh>
#include <stdexcept>
#include <string.h>
Pl_QPDFTokenizer::Members::Members() :
filter(nullptr),

View File

@ -2,7 +2,6 @@
#include <qpdf/QPDFCryptoProvider.hh>
#include <qpdf/QUtil.hh>
#include <cstdio>
#include <stdexcept>
Pl_SHA2::Pl_SHA2(int bits, Pipeline* next) :

View File

@ -1,7 +1,5 @@
#include <qpdf/Pl_String.hh>
#include <qpdf/QUtil.hh>
#include <errno.h>
#include <stdexcept>
Pl_String::Members::Members(std::string& s) :

View File

@ -2,7 +2,6 @@
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFMatrix.hh>
#include <qpdf/QPDFNameTreeObjectHelper.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh>

View File

@ -1,7 +1,5 @@
#include <qpdf/QPDFExc.hh>
#include <qpdf/QUtil.hh>
QPDFExc::QPDFExc(
qpdf_error_code_e error_code,
std::string const& filename,

View File

@ -16,7 +16,6 @@
#include <qpdf/QPDF_Reserved.hh>
#include <qpdf/QPDF_Stream.hh>
#include <qpdf/QPDF_String.hh>
#include <qpdf/QPDF_Unresolved.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh>

View File

@ -1,6 +1,5 @@
#include <qpdf/QPDFSystemError.hh>
#include <qpdf/QUtil.hh>
#include <string.h>
QPDFSystemError::QPDFSystemError(

View File

@ -2,7 +2,6 @@
#include <qpdf/QIntC.hh>
#include <qpdf/QPDFExc.hh>
#include <qpdf/QUtil.hh>
QPDFXRefEntry::QPDFXRefEntry()
{

View File

@ -1,8 +1,6 @@
#include <qpdf/QPDF_Name.hh>
#include <qpdf/QUtil.hh>
#include <stdio.h>
#include <string.h>
QPDF_Name::QPDF_Name(std::string const& name) :
QPDFValue(::ot_name, "name"),

View File

@ -5,7 +5,6 @@
// DO NOT USE ctype -- it is locale dependent for some things, and
// it's not worth the risk of including it in case it may accidentally
// be used.
#include <string.h>
static bool
is_iso_latin1_printable(char ch)

View File

@ -13,7 +13,6 @@
#include <qpdf/QUtil.hh>
#include <algorithm>
#include <iostream>
#include <math.h>
#include <string.h>

View File

@ -9,7 +9,6 @@
#include <qpdf/QPDFSystemError.hh>
#include <qpdf/QTC.hh>
#include <cmath>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>

View File

@ -2,7 +2,6 @@
#include <qpdf/QPDFCryptoProvider.hh>
#include <string.h>
RC4::RC4(unsigned char const* key_data, int key_len) :
crypto(QPDFCryptoProvider::getImpl())

View File

@ -15,7 +15,6 @@
#include <qpdf/qpdf-c_impl.hh>
#include <qpdf/qpdflogger-c_impl.hh>
#include <cstring>
#include <functional>
#include <list>
#include <stdexcept>

View File

@ -1,14 +1,12 @@
#include <qpdf/qpdfjob-c.h>
#include <qpdf/QPDFJob.hh>
#include <qpdf/QPDFLogger.hh>
#include <qpdf/QPDFUsage.hh>
#include <qpdf/QUtil.hh>
#include <qpdf/qpdf-c_impl.hh>
#include <qpdf/qpdflogger-c_impl.hh>
#include <cstdio>
#include <cstring>
struct _qpdfjob_handle
{

View File

@ -4,7 +4,6 @@
#include <qpdf/Pipeline.hh>
#include <qpdf/Pl_Function.hh>
#include <qpdf/QIntC.hh>
#include <qpdf/QPDFLogger.hh>
#include <functional>
#include <memory>

View File

@ -2,7 +2,6 @@
#include <qpdf/QPDFArgParser.hh>
#include <qpdf/QPDFUsage.hh>
#include <qpdf/QUtil.hh>
#include <cstring>
#include <iostream>

View File

@ -4,7 +4,6 @@
#include <qpdf/QIntC.hh>
#include <qpdf/QUtil.hh>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
// See comments in bits_functions.hh

View File

@ -3,8 +3,6 @@
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void
check(std::string const& what, bool result)

View File

@ -1,6 +1,5 @@
#include <qpdf/assert_test.h>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <functional>

View File

@ -5,7 +5,6 @@
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
main(int argc, char* argv[])

View File

@ -4,10 +4,8 @@
#include <qpdf/Pl_StdioFile.hh>
#include <qpdf/QUtil.hh>
#include <errno.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>
void
run(char const* filename)

View File

@ -1,6 +1,5 @@
#include <qpdf/FileInputSource.hh>
#include <qpdf/JSON.hh>
#include <qpdf/QUtil.hh>
#include <cstdlib>
#include <cstring>
#include <iostream>

View File

@ -2,7 +2,6 @@
#include <qpdf/qpdflogger-c.h>
#include <qpdf/Constants.h>
#include <qpdf/qpdfjob-c.h>
#include <stdio.h>

View File

@ -7,7 +7,6 @@
#include <iostream>
#include <list>
#include <stdlib.h>
class Object
{

View File

@ -6,7 +6,6 @@
#include <qpdf/QIntC.hh>
#include <qpdf/QUtil.hh>
#include <errno.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>

View File

@ -3,15 +3,11 @@
#include <qpdf/Pl_Buffer.hh>
#include <qpdf/QPDFSystemError.hh>
#include <qpdf/QUtil.hh>
#include <fcntl.h>
#include <fstream>
#include <iostream>
#include <limits.h>
#include <locale>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#ifdef _WIN32
# include <io.h>

View File

@ -1,7 +1,6 @@
#include <qpdf/InsecureRandomDataProvider.hh>
#include <qpdf/QUtil.hh>
#include <qpdf/SecureRandomDataProvider.hh>
#include <qpdf/qpdf-config.h>
#include <iostream>
class BogusRandomDataProvider: public RandomDataProvider

View File

@ -1,7 +1,6 @@
#include <qpdf/Pl_SHA2.hh>
#include <qpdf/QUtil.hh>
#include <iostream>
#include <stdlib.h>
#include <string.h>
static void

View File

@ -3,7 +3,6 @@
#include <qpdf/QPDFObjectHandle.hh>
#include <qpdf/QPDFPageDocumentHelper.hh>
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh>
#include <iostream>
#include <stdio.h>

View File

@ -4,7 +4,6 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
static char const* whoami = 0;

View File

@ -2,7 +2,6 @@
#include <qpdf/qpdfjob-c.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef QPDF_NO_WCHAR_T

View File

@ -26,7 +26,6 @@
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh>
#include <algorithm>
#include <iostream>
#include <limits.h>
#include <map>

View File

@ -1,4 +1,3 @@
#include <qpdf/Buffer.hh>
#include <qpdf/Constants.h>
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFObjGen.hh>
@ -6,7 +5,6 @@
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QPDFXRefEntry.hh>
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <set>

View File

@ -1,5 +1,4 @@
#include <qpdf/QUtil.hh>
#include <cstring>
#include <iostream>
int

View File

@ -4,7 +4,6 @@
#include <qpdf/QIntC.hh>
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFPageDocumentHelper.hh>
#include <qpdf/QPDFPageObjectHelper.hh>
#include <qpdf/QPDFTokenizer.hh>
#include <qpdf/QUtil.hh>
#include <iostream>

View File

@ -1,11 +1,8 @@
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFObjGen.hh>
#include <qpdf/QPDFXRefEntry.hh>
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
int
main(int argc, char* argv[])