Inspection: Possibly unused #include directive

This commit is contained in:
Urs Fleisch 2024-01-20 22:41:59 +01:00
parent 5fc3e5c192
commit 580b0b0c82
49 changed files with 5 additions and 77 deletions

1
.gitignore vendored
View File

@ -22,7 +22,6 @@ CMakeLists.txt.user*
/tests/test_runner
/tests/Testing
/taglib/libtag.a
/taglib_config.h
/taglib-config
/bindings/c/libtag_c.a
/bindings/c/taglib_c.pc

View File

@ -148,8 +148,6 @@ if(TRACE_IN_RELEASE)
set(TRACE_IN_RELEASE TRUE)
endif()
configure_file(taglib/taglib_config.h.cmake "${CMAKE_CURRENT_BINARY_DIR}/taglib_config.h")
find_package(utf8cpp QUIET)
if(NOT utf8cpp_FOUND)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/utfcpp/CMakeLists.txt)

View File

@ -30,7 +30,6 @@
# include "config.h"
#endif
#include "tstringlist.h"
#include "tbytevectorlist.h"
#include "tbytevectorstream.h"
#include "tiostream.h"
#include "tfile.h"

View File

@ -33,7 +33,6 @@ set(tag_HDRS
fileref.h
audioproperties.h
taglib_export.h
${CMAKE_CURRENT_BINARY_DIR}/../taglib_config.h
toolkit/taglib.h
toolkit/tstring.h
toolkit/tlist.h

View File

@ -30,7 +30,6 @@
#include "tbytevector.h"
#include "tpicturetype.h"
#include "taglib_export.h"
#include "attachedpictureframe.h"
namespace TagLib
{

View File

@ -26,7 +26,6 @@
#include "dsdiffproperties.h"
#include "tstring.h"
#include "tdebug.h"
using namespace TagLib;

View File

@ -26,7 +26,6 @@
#ifndef TAGLIB_FLACMETADATABLOCK_H
#define TAGLIB_FLACMETADATABLOCK_H
#include "tlist.h"
#include "tbytevector.h"
#include "taglib_export.h"

View File

@ -28,8 +28,6 @@
#include "tstring.h"
#include "tdebug.h"
#include "flacfile.h"
using namespace TagLib;
class FLAC::Properties::PropertiesPrivate

View File

@ -27,7 +27,6 @@
#include "tstringlist.h"
#include "tdebug.h"
#include "tpropertymap.h"
#include "modfileprivate.h"
using namespace TagLib;

View File

@ -26,7 +26,6 @@
#ifndef TAGLIB_ITPROPERTIES_H
#define TAGLIB_ITPROPERTIES_H
#include "taglib.h"
#include "audioproperties.h"
namespace TagLib {

View File

@ -28,12 +28,9 @@
#include "taglib.h"
#include "tfile.h"
#include "tstring.h"
#include "tlist.h"
#include "taglib_export.h"
#include <algorithm>
namespace TagLib {
namespace Mod {
//! Base class for module files

View File

@ -26,7 +26,6 @@
#ifndef TAGLIB_MODPROPERTIES_H
#define TAGLIB_MODPROPERTIES_H
#include "taglib.h"
#include "audioproperties.h"
namespace TagLib {

View File

@ -25,6 +25,7 @@
#include "mp4atom.h"
#include <array>
#include <climits>
#include <utility>

View File

@ -28,8 +28,6 @@
#ifndef TAGLIB_MP4ATOM_H
#define TAGLIB_MP4ATOM_H
#include <array>
#include "tfile.h"
#include "tlist.h"

View File

@ -25,7 +25,6 @@
#include "mp4tag.h"
#include <array>
#include <utility>
#include "tdebug.h"

View File

@ -26,7 +26,6 @@
#ifndef TAGLIB_MP4TAG_H
#define TAGLIB_MP4TAG_H
#include "tbytevectorlist.h"
#include "tfile.h"
#include "tmap.h"
#include "tstringlist.h"

View File

@ -27,7 +27,6 @@
#define TAGLIB_MPCFILE_H
#include "tfile.h"
#include "tlist.h"
#include "taglib_export.h"
#include "tag.h"
#include "mpcproperties.h"

View File

@ -29,7 +29,6 @@
#include "taglib_export.h"
#include "tpicturetype.h"
#include "id3v2frame.h"
#include "id3v2header.h"
namespace TagLib {

View File

@ -29,7 +29,6 @@
#include "tbytevectorlist.h"
#include "tdebug.h"
#include "tpropertymap.h"
#include "id3v2tag.h"
using namespace TagLib;

View File

@ -31,7 +31,6 @@
#include "taglib_export.h"
#include "id3v2frame.h"
#include "id3v2header.h"
namespace TagLib {

View File

@ -28,7 +28,6 @@
#include "tbytevector.h"
#include "taglib_export.h"
#include "taglib.h"
namespace TagLib {

View File

@ -35,12 +35,7 @@
#include "id3v2tag.h"
#include "id3v2synchdata.h"
#include "frames/textidentificationframe.h"
#include "frames/urllinkframe.h"
#include "frames/unsynchronizedlyricsframe.h"
#include "frames/commentsframe.h"
#include "frames/uniquefileidentifierframe.h"
#include "frames/unknownframe.h"
#include "frames/podcastframe.h"
using namespace TagLib;
using namespace ID3v2;

View File

@ -28,7 +28,6 @@
#include "tbytevector.h"
#include "taglib_export.h"
#include "id3v2.h"
namespace TagLib {

View File

@ -25,8 +25,6 @@
#include "id3v2synchdata.h"
#include <iostream>
using namespace TagLib;
using namespace ID3v2;

View File

@ -27,7 +27,6 @@
#define TAGLIB_ID3V2SYNCHDATA_H
#include "tbytevector.h"
#include "taglib.h"
namespace TagLib {

View File

@ -29,7 +29,6 @@
#include "mpegfile.h"
#include "xingheader.h"
#include "apetag.h"
#include "apefooter.h"
using namespace TagLib;

View File

@ -28,7 +28,6 @@
#include "tmap.h"
#include "tstring.h"
#include "tstringlist.h"
#include "tbytevector.h"
#include "taglib_export.h"
#include "tag.h"

View File

@ -26,7 +26,6 @@
#ifndef TAGLIB_WAVPROPERTIES_H
#define TAGLIB_WAVPROPERTIES_H
#include "taglib.h"
#include "audioproperties.h"
namespace TagLib {

View File

@ -26,7 +26,6 @@
#ifndef TAGLIB_S3MPROPERTIES_H
#define TAGLIB_S3MPROPERTIES_H
#include "taglib.h"
#include "audioproperties.h"
namespace TagLib {

View File

@ -1,11 +0,0 @@
/* taglib_config.h. Generated by cmake from taglib_config.h.cmake */
#ifndef TAGLIB_TAGLIB_CONFIG_H
#define TAGLIB_TAGLIB_CONFIG_H
/* These values are no longer used. This file is present only for compatibility reasons. */
#define TAGLIB_WITH_ASF 1
#define TAGLIB_WITH_MP4 1
#endif

View File

@ -26,8 +26,6 @@
#ifndef TAGLIB_H
#define TAGLIB_H
#include "taglib_config.h"
#define TAGLIB_MAJOR_VERSION 2
#define TAGLIB_MINOR_VERSION 0
#define TAGLIB_PATCH_VERSION 0

View File

@ -26,7 +26,6 @@
#ifndef TAGLIB_BYTEVECTOR_H
#define TAGLIB_BYTEVECTOR_H
#include <iostream>
#include <memory>
#include <vector>

View File

@ -26,6 +26,10 @@
#ifndef TAGLIB_DEBUG_H
#define TAGLIB_DEBUG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
namespace TagLib {
class String;

View File

@ -43,8 +43,6 @@
# define W_OK 2
#endif
#include "wavpackfile.h"
using namespace TagLib;
class File::FilePrivate

View File

@ -30,8 +30,6 @@
#include <initializer_list>
#include <memory>
#include "taglib.h"
namespace TagLib {
//! A generic, implicitly shared list.

View File

@ -31,8 +31,6 @@
#include <initializer_list>
#include <utility>
#include "taglib.h"
namespace TagLib {
//! A generic, implicitly shared map.

View File

@ -26,7 +26,6 @@
#ifndef TAGLIB_STRING_H
#define TAGLIB_STRING_H
#include <iostream>
#include <string>
#include "tbytevector.h"

View File

@ -26,9 +26,6 @@
#ifndef TAGLIB_VARIANT_H
#define TAGLIB_VARIANT_H
#include <memory.h>
#include <iostream>
#include "tlist.h"
#include "tmap.h"
#include "taglib_export.h"

View File

@ -30,7 +30,6 @@
#ifndef TAGLIB_WVPROPERTIES_H
#define TAGLIB_WVPROPERTIES_H
#include "tbytevector.h"
#include "taglib_export.h"
#include "audioproperties.h"

View File

@ -27,7 +27,6 @@
#define TAGLIB_XMPROPERTIES_H
#include "tstring.h"
#include "taglib.h"
#include "audioproperties.h"
namespace TagLib {

View File

@ -27,9 +27,7 @@
#include <cstdio>
#include "tstringlist.h"
#include "tbytevectorlist.h"
#include "tpropertymap.h"
#include "tdebug.h"
#include "tag.h"
#include "apefile.h"
#include "apetag.h"

View File

@ -27,7 +27,6 @@
#include <cstdio>
#include "tstringlist.h"
#include "tbytevectorlist.h"
#include "tpropertymap.h"
#include "tag.h"
#include "flacfile.h"

View File

@ -30,7 +30,6 @@
#include "tbytevectorlist.h"
#include "tag.h"
#include "flacfile.h"
#include "flacmetadatablock.h"
#include <cppunit/extensions/HelperMacros.h>
#include "utils.h"

View File

@ -27,7 +27,6 @@
#include <cstdio>
#include "tstringlist.h"
#include "tbytevectorlist.h"
#include "tag.h"
#include "flacunknownmetadatablock.h"
#include <cppunit/extensions/HelperMacros.h>

View File

@ -27,7 +27,6 @@
#include <utility>
#include <cassert>
#include "tdebug.h"
#include "tpropertymap.h"
#include "tzlib.h"
#include "id3v2tag.h"

View File

@ -28,7 +28,6 @@
#include "tag.h"
#include "tstringlist.h"
#include "tbytevectorlist.h"
#include "tpropertymap.h"
#include "oggfile.h"
#include "vorbisfile.h"

View File

@ -27,7 +27,6 @@
#include <cstdio>
#include "tstringlist.h"
#include "tbytevectorlist.h"
#include "tag.h"
#include "oggfile.h"
#include "oggflacfile.h"

View File

@ -53,15 +53,12 @@
#include "flacpicture.h"
#include "flacproperties.h"
#include "generalencapsulatedobjectframe.h"
#include "id3v1genres.h"
#include "id3v1tag.h"
#include "id3v2.h"
#include "id3v2extendedheader.h"
#include "id3v2footer.h"
#include "id3v2frame.h"
#include "id3v2framefactory.h"
#include "id3v2header.h"
#include "id3v2synchdata.h"
#include "id3v2tag.h"
#include "infotag.h"
#include "itfile.h"
@ -70,7 +67,6 @@
#include "modfilebase.h"
#include "modproperties.h"
#include "modtag.h"
#include "mp4atom.h"
#include "mp4coverart.h"
#include "mp4file.h"
#include "mp4item.h"

View File

@ -27,7 +27,6 @@
#include <cstdio>
#include "tpropertymap.h"
#include "tdebug.h"
#include "xiphcomment.h"
#include "vorbisfile.h"
#include <cppunit/extensions/HelperMacros.h>