Remove many redundant or not needed header inclusions

This commit is contained in:
Luis Díaz Más 2022-02-18 19:01:24 +01:00
parent b543f3e973
commit 7e5ba7cb23
23 changed files with 5 additions and 100 deletions

2
.gitignore vendored
View File

@ -25,3 +25,5 @@ doc/html
contrib/vms/.vagrant
/.vscode
.vs/
*cppcheck*

View File

@ -32,7 +32,6 @@
#include <map>
#include <string>
#include <stdio.h>
namespace Exiv2 {

View File

@ -25,11 +25,6 @@
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions

View File

@ -26,11 +26,6 @@
// included header files
#include "metadatum.hpp"
// + standard includes
#include <string>
#include <iosfwd>
#include <memory>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -576,11 +576,6 @@ namespace Exiv2 {
// This is abs() - given the existence of broken compilers with Koenig
// lookup issues and other problems, I code this explicitly. (Remember,
// IntType may be a user-defined type).
#ifdef _MSC_VER
#pragma warning( disable : 4146 )
#undef max
#undef min
#endif
if (n < zero) {
if (n == std::numeric_limits<IntType>::min()) {
n = std::numeric_limits<IntType>::max();
@ -590,9 +585,6 @@ namespace Exiv2 {
}
if (m < zero)
m = -m;
#ifdef _MSC_VER
#pragma warning( default : 4146 )
#endif
// As n and m are now positive, we can be sure that %= returns a
// positive value (the standard guarantees this for built-in types,

View File

@ -37,11 +37,6 @@
#include "tags.hpp"
#include "types.hpp"
// + standard includes
#include <string>
#include <iosfwd>
#include <memory>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -33,10 +33,6 @@
#include "tags.hpp"
#include "types.hpp"
// + standard includes
#include <string>
#include <iosfwd>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -26,8 +26,6 @@
#include "image.hpp"
// + standard includes
#include <iosfwd>
#include <string>
#include <vector>
#include <stack>

View File

@ -24,7 +24,6 @@
// *****************************************************************************
// included header files
#include "tags.hpp"
#include "types.hpp"
// *****************************************************************************
// namespace extensions

View File

@ -37,6 +37,7 @@
// + standard includes
#include <filesystem>
#include <fstream>
#include <iostream>
namespace fs = std::filesystem;

View File

@ -24,12 +24,8 @@
// included header files
#include "tifffwd_int.hpp"
#include "tags_int.hpp"
#include "ini.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -25,10 +25,6 @@
#include "tags.hpp"
#include "types.hpp"
// + standard includes
#include <string>
#include <iosfwd>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -26,10 +26,6 @@
#include "tags_int.hpp"
#include "types.hpp"
// + standard includes
#include <iostream>
#include <iomanip>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -25,11 +25,6 @@
#include "types.hpp"
#include "pngimage.hpp"
// + standard includes
#include <iosfwd>
#include <cassert>
#include <cstdarg>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -23,10 +23,6 @@
// *****************************************************************************
// included header files
#include "tiffimage_int.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions

View File

@ -25,11 +25,6 @@
#include "tags.hpp"
#include "types.hpp"
// + standard includes
#include <string>
#include <iosfwd>
#include <memory>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -25,11 +25,6 @@
#include "tags.hpp"
#include "types.hpp"
// + standard includes
#include <string>
#include <iosfwd>
#include <memory>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -22,14 +22,8 @@
// *****************************************************************************
// included header files
#include "tags.hpp"
#include "types.hpp"
#include "tiffcomposite_int.hpp"
// + standard includes
#include <string>
#include <iosfwd>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {

View File

@ -22,14 +22,7 @@
// *****************************************************************************
// included header files
#include "types.hpp"
#include "tags.hpp"
#include "value.hpp"
// + standard includes
#include <string>
#include <iostream>
#include <memory>
// *****************************************************************************
// namespace extensions

View File

@ -22,16 +22,7 @@
// *****************************************************************************
// included header files
#include "value.hpp"
#include "tifffwd_int.hpp"
#include "types.hpp"
// + standard includes
#include <iosfwd>
#include <memory>
#include <vector>
#include <string>
#include <cassert>
// *****************************************************************************
// namespace extensions

View File

@ -26,9 +26,7 @@
#include "tags_int.hpp"
// + standard includes
#include <memory>
#include <stack>
#include <vector>
// *****************************************************************************
// Exiv2 namespace extensions

View File

@ -25,12 +25,6 @@
#include "tifffwd_int.hpp"
#include "tiffcomposite_int.hpp"
#include "image.hpp"
#include "tags_int.hpp"
#include "types.hpp"
// + standard includes
#include <map>
#include <utility>
// *****************************************************************************
// namespace extensions

View File

@ -26,15 +26,7 @@
#include "tifffwd_int.hpp"
#include "types.hpp"
// + standard includes
#include <array>
#include <memory>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <map>
#include <set>
#include <vector>
// *****************************************************************************
// namespace extensions
@ -42,6 +34,8 @@ namespace Exiv2 {
class IptcData;
class XmpData;
class TiffImageEntry;
class TiffDataEntryBase;
namespace Internal {