mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
Remove unused include directives
This commit is contained in:
parent
a6d7b79e65
commit
7f043fe88e
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <qpdf/QIntC.hh>
|
||||
#include <qpdf/QPDF.hh>
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include <qpdf/Constants.h>
|
||||
#include <qpdf/qpdfjob-c.h>
|
||||
#include <qpdf/qpdflogger-c.h>
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
// This example demonstrates how we can use the QPDFJob createQPDF and writeQPDF
|
||||
|
@ -2,9 +2,7 @@
|
||||
|
||||
#include <qpdf/QIntC.hh>
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#include <string.h>
|
||||
|
||||
BufferInputSource::BufferInputSource(
|
||||
|
@ -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()
|
||||
|
@ -1,7 +1,5 @@
|
||||
#include <qpdf/Pipeline.hh>
|
||||
|
||||
#include <qpdf/QUtil.hh>
|
||||
|
||||
#include <cstring>
|
||||
#include <stdexcept>
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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),
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <qpdf/QIntC.hh>
|
||||
#include <qpdf/QUtil.hh>
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <stdexcept>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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) :
|
||||
|
@ -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) :
|
||||
|
@ -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),
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <qpdf/QPDFCryptoProvider.hh>
|
||||
#include <qpdf/QUtil.hh>
|
||||
#include <cstdio>
|
||||
#include <stdexcept>
|
||||
|
||||
Pl_SHA2::Pl_SHA2(int bits, Pipeline* next) :
|
||||
|
@ -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) :
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <qpdf/QPDF.hh>
|
||||
#include <qpdf/QPDFMatrix.hh>
|
||||
#include <qpdf/QPDFNameTreeObjectHelper.hh>
|
||||
#include <qpdf/QTC.hh>
|
||||
#include <qpdf/QUtil.hh>
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
#include <qpdf/QPDFExc.hh>
|
||||
|
||||
#include <qpdf/QUtil.hh>
|
||||
|
||||
QPDFExc::QPDFExc(
|
||||
qpdf_error_code_e error_code,
|
||||
std::string const& filename,
|
||||
|
@ -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>
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <qpdf/QPDFSystemError.hh>
|
||||
|
||||
#include <qpdf/QUtil.hh>
|
||||
#include <string.h>
|
||||
|
||||
QPDFSystemError::QPDFSystemError(
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <qpdf/QIntC.hh>
|
||||
#include <qpdf/QPDFExc.hh>
|
||||
#include <qpdf/QUtil.hh>
|
||||
|
||||
QPDFXRefEntry::QPDFXRefEntry()
|
||||
{
|
||||
|
@ -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"),
|
||||
|
@ -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)
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include <qpdf/QUtil.hh>
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include <qpdf/QPDFSystemError.hh>
|
||||
#include <qpdf/QTC.hh>
|
||||
|
||||
#include <cmath>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <qpdf/QPDFCryptoProvider.hh>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
RC4::RC4(unsigned char const* key_data, int key_len) :
|
||||
crypto(QPDFCryptoProvider::getImpl())
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include <qpdf/qpdf-c_impl.hh>
|
||||
#include <qpdf/qpdflogger-c_impl.hh>
|
||||
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <list>
|
||||
#include <stdexcept>
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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>
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <qpdf/QPDFArgParser.hh>
|
||||
#include <qpdf/QPDFUsage.hh>
|
||||
#include <qpdf/QUtil.hh>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
|
@ -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
|
||||
|
@ -3,8 +3,6 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
void
|
||||
check(std::string const& what, bool result)
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <qpdf/assert_test.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
|
@ -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)
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <qpdf/FileInputSource.hh>
|
||||
#include <qpdf/JSON.hh>
|
||||
#include <qpdf/QUtil.hh>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <qpdf/qpdflogger-c.h>
|
||||
|
||||
#include <qpdf/Constants.h>
|
||||
#include <qpdf/qpdfjob-c.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -7,7 +7,6 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <list>
|
||||
#include <stdlib.h>
|
||||
|
||||
class Object
|
||||
{
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include <qpdf/QIntC.hh>
|
||||
#include <qpdf/QUtil.hh>
|
||||
|
||||
#include <errno.h>
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <qpdf/Pl_SHA2.hh>
|
||||
#include <qpdf/QUtil.hh>
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static void
|
||||
|
@ -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>
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
static char const* whoami = 0;
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <qpdf/qpdfjob-c.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef QPDF_NO_WCHAR_T
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include <qpdf/QUtil.hh>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
int
|
||||
|
@ -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>
|
||||
|
@ -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[])
|
||||
|
Loading…
Reference in New Issue
Block a user