Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

remove duplicate include (#2271)

otakuto6985407a9612
diff --git a/toonz/sources/common/tcache/timagecache.cpp b/toonz/sources/common/tcache/timagecache.cpp
index 63913bcf0..25137007e 100644
--- a/toonz/sources/common/tcache/timagecache.cpp
+++ b/toonz/sources/common/tcache/timagecache.cpp
@@ -33,7 +33,6 @@
#include "traster.h"
//#include "tstopwatch.h"
-#include "tconvert.h"
#include "tbigmemorymanager.h"
#include "tstream.h"
diff --git a/toonz/sources/common/tfx/zeraryFx.cpp b/toonz/sources/common/tfx/zeraryFx.cpp
index b52fe1dc4..3864aaa7f 100644
--- a/toonz/sources/common/tfx/zeraryFx.cpp
+++ b/toonz/sources/common/tfx/zeraryFx.cpp
@@ -7,7 +7,6 @@
// TnzBase includes
#include "tparamset.h"
#include "tdoubleparam.h"
-#include "tzeraryfx.h"
#include "tfxparam.h"
#include "tparamuiconcept.h"
diff --git a/toonz/sources/common/tiio/tiio.cpp b/toonz/sources/common/tiio/tiio.cpp
index 7e1080137..d664addc2 100644
--- a/toonz/sources/common/tiio/tiio.cpp
+++ b/toonz/sources/common/tiio/tiio.cpp
@@ -2,7 +2,6 @@
#include "tiio.h"
-#include "tiio.h"
#include "tiio_jpg.h"
#include "tproperty.h"
diff --git a/toonz/sources/common/tsystem/tsystem.cpp b/toonz/sources/common/tsystem/tsystem.cpp
index faffa219b..a8b772465 100644
--- a/toonz/sources/common/tsystem/tsystem.cpp
+++ b/toonz/sources/common/tsystem/tsystem.cpp
@@ -32,7 +32,6 @@ using namespace std;
#include <winnt.h>
#endif
-#include <QStringList>
namespace {
diff --git a/toonz/sources/include/toonzqt/popupbutton.h b/toonz/sources/include/toonzqt/popupbutton.h
index 0ee808185..ecaaca200 100644
--- a/toonz/sources/include/toonzqt/popupbutton.h
+++ b/toonz/sources/include/toonzqt/popupbutton.h
@@ -20,7 +20,6 @@
#include <QPushButton>
#include <QString>
#include <QIcon>
-#include <QPushButton>
#include <QList>
// Forward declarations
diff --git a/toonz/sources/stdfx/iwa_spectrumfx.h b/toonz/sources/stdfx/iwa_spectrumfx.h
index ff29c498b..6be4562c8 100644
--- a/toonz/sources/stdfx/iwa_spectrumfx.h
+++ b/toonz/sources/stdfx/iwa_spectrumfx.h
@@ -8,7 +8,6 @@
#ifndef IWA_SPECTRUM_H
#define IWA_SPECTRUM_H
-#include "tfxparam.h"
#include "stdfx.h"
#include "tfxparam.h"
diff --git a/toonz/sources/tnzext/StrokeDeformation.cpp b/toonz/sources/tnzext/StrokeDeformation.cpp
index e88bb11b2..fad64cbe0 100644
--- a/toonz/sources/tnzext/StrokeDeformation.cpp
+++ b/toonz/sources/tnzext/StrokeDeformation.cpp
@@ -18,7 +18,6 @@
#include "ext/StraightCornerDeformation.h"
#include "ext/CornerDeformation.h"
-#include "ext/SmoothDeformation.h"
#include "ext/StrokeDeformationImpl.h"
#include "DeformationSelector.h"
diff --git a/toonz/sources/tnztools/cuttertool.cpp b/toonz/sources/tnztools/cuttertool.cpp
index 9e93f7dcc..677324f1e 100644
--- a/toonz/sources/tnztools/cuttertool.cpp
+++ b/toonz/sources/tnztools/cuttertool.cpp
@@ -8,7 +8,6 @@
#include "toonz/tcolumnhandle.h"
#include "toonz/txshlevelhandle.h"
#include "tools/strokeselection.h"
-#include "tools/tool.h"
#include "tmathutil.h"
#include "tstroke.h"
diff --git a/toonz/sources/tnztools/edittoolgadgets.cpp b/toonz/sources/tnztools/edittoolgadgets.cpp
index 1effcb599..8dc24e550 100644
--- a/toonz/sources/tnztools/edittoolgadgets.cpp
+++ b/toonz/sources/tnztools/edittoolgadgets.cpp
@@ -13,7 +13,6 @@
#include "toonz/tcolumnfx.h"
#include "tdoubleparam.h"
#include "tparamset.h"
-#include "toonz/stage.h"
#include "tundo.h"
#include "tparamuiconcept.h"
diff --git a/toonz/sources/tnztools/fingertool.cpp b/toonz/sources/tnztools/fingertool.cpp
index b38a48039..f3871d448 100644
--- a/toonz/sources/tnztools/fingertool.cpp
+++ b/toonz/sources/tnztools/fingertool.cpp
@@ -35,7 +35,6 @@
#include "toonz/txshlevelhandle.h"
#include "toonz/tframehandle.h"
#include "tools/toolhandle.h"
-#include "tools/toolutils.h"
// For Qt translation support
#include <QCoreApplication>
diff --git a/toonz/sources/tnztools/fullcolorerasertool.cpp b/toonz/sources/tnztools/fullcolorerasertool.cpp
index 458d1fcd1..efb986c22 100644
--- a/toonz/sources/tnztools/fullcolorerasertool.cpp
+++ b/toonz/sources/tnztools/fullcolorerasertool.cpp
@@ -5,7 +5,6 @@
#include "tools/cursors.h"
#include "tools/toolcommandids.h"
#include "tools/toolutils.h"
-#include "tools/toolutils.h"
#include "tools/toolhandle.h"
#include "historytypes.h"
diff --git a/toonz/sources/tnztools/paintbrushtool.cpp b/toonz/sources/tnztools/paintbrushtool.cpp
index 3c2cbe925..ebf5ca981 100644
--- a/toonz/sources/tnztools/paintbrushtool.cpp
+++ b/toonz/sources/tnztools/paintbrushtool.cpp
@@ -34,7 +34,6 @@
#include "toonz/txshlevelhandle.h"
#include "toonz/tframehandle.h"
#include "tools/toolhandle.h"
-#include "tools/toolutils.h"
// For Qt translation support
#include <QCoreApplication>
diff --git a/toonz/sources/tnztools/pinchtool.cpp b/toonz/sources/tnztools/pinchtool.cpp
index e164da8f0..004db4211 100644
--- a/toonz/sources/tnztools/pinchtool.cpp
+++ b/toonz/sources/tnztools/pinchtool.cpp
@@ -45,7 +45,6 @@
#include "ext/Selector.h"
#include "ext/CornerDeformation.h"
#include "ext/StraightCornerDeformation.h"
-#include "ext/StrokeDeformation.h"
#include <memory>
#include <algorithm>
diff --git a/toonz/sources/tnztools/rastererasertool.cpp b/toonz/sources/tnztools/rastererasertool.cpp
index a2df61e17..8b86cdcd3 100644
--- a/toonz/sources/tnztools/rastererasertool.cpp
+++ b/toonz/sources/tnztools/rastererasertool.cpp
@@ -4,7 +4,6 @@
#include "tools/toolutils.h"
#include "tools/cursors.h"
#include "tools/tool.h"
-#include "tools/toolutils.h"
#include "tools/toolhandle.h"
#include "bluredbrush.h"
diff --git a/toonz/sources/tnztools/rasterselection.cpp b/toonz/sources/tnztools/rasterselection.cpp
index 206c20988..08347c6c9 100644
--- a/toonz/sources/tnztools/rasterselection.cpp
+++ b/toonz/sources/tnztools/rasterselection.cpp
@@ -24,7 +24,6 @@
#include "toonz/toonzscene.h"
#include "toonz/tcamera.h"
#include "toonz/trasterimageutils.h"
-#include "toonz/toonzimageutils.h"
#include <QApplication>
#include <QClipboard>
diff --git a/toonz/sources/tnztools/toolhandle.cpp b/toonz/sources/tnztools/toolhandle.cpp
index 1143db9b9..06ba72ba0 100644
--- a/toonz/sources/tnztools/toolhandle.cpp
+++ b/toonz/sources/tnztools/toolhandle.cpp
@@ -6,7 +6,6 @@
#include "tools/toolcommandids.h"
#include "timage.h"
//#include "tapp.h"
-#include "toonz/stage2.h"
#include "toonzqt/menubarcommand.h"
#include <QAction>
#include <QMap>
diff --git a/toonz/sources/tnztools/tooloptions.cpp b/toonz/sources/tnztools/tooloptions.cpp
index 84caee0b6..dbc4cce15 100644
--- a/toonz/sources/tnztools/tooloptions.cpp
+++ b/toonz/sources/tnztools/tooloptions.cpp
@@ -56,7 +56,6 @@
#include <QResizeEvent>
#include <QList>
#include <QSignalMapper>
-#include <QPushButton>
#include <QPropertyAnimation>
#include <QEasingCurve>
#include <QStackedWidget>
diff --git a/toonz/sources/toonz/audiorecordingpopup.cpp b/toonz/sources/toonz/audiorecordingpopup.cpp
index 9a380774e..a71e78c61 100644
--- a/toonz/sources/toonz/audiorecordingpopup.cpp
+++ b/toonz/sources/toonz/audiorecordingpopup.cpp
@@ -47,7 +47,6 @@
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGridLayout>
-#include <QGroupBox>
#include <QMultimedia>
#include <QPainter>
#include <QElapsedTimer>
diff --git a/toonz/sources/toonz/castviewer.cpp b/toonz/sources/toonz/castviewer.cpp
index 78182bc77..14ba6d31b 100644
--- a/toonz/sources/toonz/castviewer.cpp
+++ b/toonz/sources/toonz/castviewer.cpp
@@ -17,7 +17,6 @@
#include "toonz/txshlevelhandle.h"
#include "toonz/levelset.h"
#include "toonz/toonzscene.h"
-#include "toonz/levelset.h"
#include "toonz/txshsimplelevel.h"
#include "toonz/txshleveltypes.h"
diff --git a/toonz/sources/toonz/comboviewerpane.cpp b/toonz/sources/toonz/comboviewerpane.cpp
index b69a20c61..72ecb7f99 100644
--- a/toonz/sources/toonz/comboviewerpane.cpp
+++ b/toonz/sources/toonz/comboviewerpane.cpp
@@ -13,7 +13,6 @@
#include "toonz/tframehandle.h"
#include "toonz/tcolumnhandle.h"
#include "toonz/txshlevelhandle.h"
-#include "toonz/txsheethandle.h"
#include "toonz/toonzscene.h"
#include "toonz/sceneproperties.h"
#include "toonz/txsheet.h"
diff --git a/toonz/sources/toonz/filebrowser.cpp b/toonz/sources/toonz/filebrowser.cpp
index 4d2c576a6..30d4de00e 100644
--- a/toonz/sources/toonz/filebrowser.cpp
+++ b/toonz/sources/toonz/filebrowser.cpp
@@ -18,7 +18,6 @@
#include "toonzqt/dvdialog.h"
#include "toonzqt/icongenerator.h"
#include "toonzqt/menubarcommand.h"
-#include "toonzqt/dvdialog.h"
#include "toonzqt/gutil.h"
#include "toonzqt/trepetitionguard.h"
diff --git a/toonz/sources/toonz/filebrowsermodel.cpp b/toonz/sources/toonz/filebrowsermodel.cpp
index 2702e60ce..65012de48 100644
--- a/toonz/sources/toonz/filebrowsermodel.cpp
+++ b/toonz/sources/toonz/filebrowsermodel.cpp
@@ -15,7 +15,6 @@
#include "tapp.h"
#include "toonz/tscenehandle.h"
-#include "toonz/toonzscene.h"
#include <QFileInfo>
#include <QDir>
diff --git a/toonz/sources/toonz/flipbook.cpp b/toonz/sources/toonz/flipbook.cpp
index 8c236bcb1..ad550253e 100644
--- a/toonz/sources/toonz/flipbook.cpp
+++ b/toonz/sources/toonz/flipbook.cpp
@@ -65,7 +65,6 @@
// Other widgets
#include "toonzqt/flipconsole.h"
#include "toonzqt/dvdialog.h"
-#include "toonzqt/gutil.h"
#include "filmstripselection.h"
#include "castselection.h"
#include "histogrampopup.h"
@@ -75,7 +74,6 @@
#include <QDesktopWidget>
#include <QSettings>
#include <QPainter>
-#include <QVBoxLayout>
#include <QDialogButtonBox>
#include <QAbstractButton>
#include <QLabel>
@@ -90,7 +88,6 @@
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
-#include <QLabel>
#include <stdint.h> // for uintptr_t
diff --git a/toonz/sources/toonz/levelcommand.cpp b/toonz/sources/toonz/levelcommand.cpp
index 665d321ba..bb5344be9 100644
--- a/toonz/sources/toonz/levelcommand.cpp
+++ b/toonz/sources/toonz/levelcommand.cpp
@@ -25,8 +25,6 @@
#include "tundo.h"
#include "tconvert.h"
-#include "cellselection.h"
-#include "filmstripselection.h"
#include "tlevel_io.h"
#include "ttoonzimage.h"
#include "tsystem.h"
diff --git a/toonz/sources/toonz/levelsettingspopup.cpp b/toonz/sources/toonz/levelsettingspopup.cpp
index b44052413..348f1db2d 100644
--- a/toonz/sources/toonz/levelsettingspopup.cpp
+++ b/toonz/sources/toonz/levelsettingspopup.cpp
@@ -28,7 +28,6 @@
#include "toonz/txsheethandle.h"
#include "toonz/txshlevelhandle.h"
#include "toonz/tcolumnhandle.h"
-#include "toonz/txsheethandle.h"
#include "toonz/toonzscene.h"
#include "toonz/txshleveltypes.h"
#include "toonz/levelproperties.h"
diff --git a/toonz/sources/toonz/linetestpane.cpp b/toonz/sources/toonz/linetestpane.cpp
index c6b938f49..5d53a8863 100644
--- a/toonz/sources/toonz/linetestpane.cpp
+++ b/toonz/sources/toonz/linetestpane.cpp
@@ -5,7 +5,6 @@
#include "xsheetdragtool.h"
#include "toutputproperties.h"
#include "tapp.h"
-#include "toutputproperties.h"
#include "toonz/tcolumnhandle.h"
#include "toonz/txshlevelhandle.h"
#include "toonz/toonzscene.h"
diff --git a/toonz/sources/toonz/mergecmapped.cpp b/toonz/sources/toonz/mergecmapped.cpp
index e4863e9d3..20378b644 100644
--- a/toonz/sources/toonz/mergecmapped.cpp
+++ b/toonz/sources/toonz/mergecmapped.cpp
@@ -30,7 +30,6 @@
#include "timagecache.h"
#include "tcolorstyles.h"
#include "toonz/levelproperties.h"
-#include "toonz/toonzscene.h"
#include "toonz/childstack.h"
#include "toonz/toonzimageutils.h"
#include "tpaletteutil.h"
diff --git a/toonz/sources/toonz/meshifypopup.cpp b/toonz/sources/toonz/meshifypopup.cpp
index f371a09e5..cf5766183 100644
--- a/toonz/sources/toonz/meshifypopup.cpp
+++ b/toonz/sources/toonz/meshifypopup.cpp
@@ -36,7 +36,6 @@
#include "toonz/levelset.h"
#include "toonz/tstageobject.h"
#include "toonz/tstageobjecttree.h"
-#include "toonz/stage.h"
#include "toonz/stagevisitor.h"
// TnzExt includes
diff --git a/toonz/sources/toonz/penciltestpopup.cpp b/toonz/sources/toonz/penciltestpopup.cpp
index 496d0f425..a24894eb1 100644
--- a/toonz/sources/toonz/penciltestpopup.cpp
+++ b/toonz/sources/toonz/penciltestpopup.cpp
@@ -63,7 +63,6 @@
#include <QVBoxLayout>
#include <QGridLayout>
#include <QToolButton>
-#include <QGroupBox>
#include <QDateTime>
#include <QMultimedia>
#include <QPainter>
@@ -72,7 +71,6 @@
#include <QTimer>
#include <QIntValidator>
#include <QRegExpValidator>
-#include <QPushButton>
#ifdef _WIN32
#include <dshow.h>
diff --git a/toonz/sources/toonz/preferencespopup.cpp b/toonz/sources/toonz/preferencespopup.cpp
index 047a66ee0..e3e3ce9c7 100644
--- a/toonz/sources/toonz/preferencespopup.cpp
+++ b/toonz/sources/toonz/preferencespopup.cpp
@@ -24,7 +24,6 @@
#include "toonz/tscenehandle.h"
#include "toonz/txshlevelhandle.h"
#include "toonz/txshleveltypes.h"
-#include "toonz/tscenehandle.h"
#include "toonz/toonzscene.h"
#include "toonz/tcamera.h"
#include "toonz/levelproperties.h"
diff --git a/toonz/sources/toonz/previewer.cpp b/toonz/sources/toonz/previewer.cpp
index 5ee810c1c..264f95915 100644
--- a/toonz/sources/toonz/previewer.cpp
+++ b/toonz/sources/toonz/previewer.cpp
@@ -39,7 +39,6 @@
#include "toonz/toonzscene.h"
#include "toonz/txshlevel.h"
#include "toonz/txsheet.h"
-#include "toonz/sceneproperties.h"
#include "toonz/tcamera.h"
#include "toonz/palettecontroller.h"
diff --git a/toonz/sources/toonz/runscriptcommand.cpp b/toonz/sources/toonz/runscriptcommand.cpp
index e32b189d9..7a7ea8617 100644
--- a/toonz/sources/toonz/runscriptcommand.cpp
+++ b/toonz/sources/toonz/runscriptcommand.cpp
@@ -10,7 +10,6 @@
#include "toonz/toonzscene.h"
#include "toonz/toonzfolders.h"
#include "filebrowserpopup.h"
-#include "toonz/tproject.h"
#include "floatingpanelcommand.h"
#include "scriptconsolepanel.h"
#include "tsystem.h"
diff --git a/toonz/sources/toonz/sceneviewer.cpp b/toonz/sources/toonz/sceneviewer.cpp
index 6926f0084..734a30faf 100644
--- a/toonz/sources/toonz/sceneviewer.cpp
+++ b/toonz/sources/toonz/sceneviewer.cpp
@@ -56,7 +56,6 @@
#include "toonz/cleanupparameters.h"
#include "toonz/toonzimageutils.h"
#include "toonz/txshleveltypes.h"
-#include "toonz/preferences.h"
#include "subcameramanager.h"
// TnzCore includes
diff --git a/toonz/sources/toonz/scriptconsolepanel.cpp b/toonz/sources/toonz/scriptconsolepanel.cpp
index a18c37cd0..7c34cdccd 100644
--- a/toonz/sources/toonz/scriptconsolepanel.cpp
+++ b/toonz/sources/toonz/scriptconsolepanel.cpp
@@ -15,7 +15,6 @@
#include "toonz/txshsimplelevel.h"
#include "toonzqt/selection.h"
#include "toonzqt/tselectionhandle.h"
-#include "tapp.h"
#include "flipbook.h"
#include "tvectorimage.h"
diff --git a/toonz/sources/toonz/shortcutpopup.cpp b/toonz/sources/toonz/shortcutpopup.cpp
index 7cc1b554b..5022abed6 100644
--- a/toonz/sources/toonz/shortcutpopup.cpp
+++ b/toonz/sources/toonz/shortcutpopup.cpp
@@ -8,7 +8,6 @@
#include "tenv.h"
#include "tsystem.h"
-#include "toonz/preferences.h"
#include "toonz/toonzfolders.h"
// TnzQt includes
#include "toonzqt/gutil.h"
diff --git a/toonz/sources/toonz/svnlockdialog.cpp b/toonz/sources/toonz/svnlockdialog.cpp
index 16fd53e36..633c770ee 100644
--- a/toonz/sources/toonz/svnlockdialog.cpp
+++ b/toonz/sources/toonz/svnlockdialog.cpp
@@ -23,7 +23,6 @@
#include <QLabel>
#include <QPlainTextEdit>
#include <QTime>
-#include <QFormLayout>
#include <QCheckBox>
#include <QHeaderView>
#include <QTreeWidget>
diff --git a/toonz/sources/toonz/versioncontrol.cpp b/toonz/sources/toonz/versioncontrol.cpp
index a3fa49a62..bf8f4cf6e 100644
--- a/toonz/sources/toonz/versioncontrol.cpp
+++ b/toonz/sources/toonz/versioncontrol.cpp
@@ -12,7 +12,6 @@
#include "toonz/txshsimplelevel.h"
#include "toonz/txshlevelhandle.h"
#include "toonz/txshleveltypes.h"
-#include "toonz/txshsimplelevel.h"
#include "toonz/palettecontroller.h"
#include "toonz/tpalettehandle.h"
#include "toonz/tscenehandle.h"
diff --git a/toonz/sources/toonz/viewerpane.cpp b/toonz/sources/toonz/viewerpane.cpp
index f254fbeae..a82f7e768 100644
--- a/toonz/sources/toonz/viewerpane.cpp
+++ b/toonz/sources/toonz/viewerpane.cpp
@@ -13,7 +13,6 @@
#include "toonz/tframehandle.h"
#include "toonz/tcolumnhandle.h"
#include "toonz/txshlevelhandle.h"
-#include "toonz/txsheethandle.h"
#include "toonz/toonzscene.h"
#include "toonz/sceneproperties.h"
#include "toonz/txsheet.h"
diff --git a/toonz/sources/toonz/xshcellmover.cpp b/toonz/sources/toonz/xshcellmover.cpp
index a89ce323b..81f5043ee 100644
--- a/toonz/sources/toonz/xshcellmover.cpp
+++ b/toonz/sources/toonz/xshcellmover.cpp
@@ -17,7 +17,6 @@
#include "toonzqt/tselectionhandle.h"
#include "toonzqt/selection.h"
#include "toonzqt/stageobjectsdata.h"
-#include "toonzqt/selection.h"
#include "historytypes.h"
// TnzLib includes
diff --git a/toonz/sources/toonz/xshcolumnviewer.cpp b/toonz/sources/toonz/xshcolumnviewer.cpp
index e077e5abf..b974f4bcc 100644
--- a/toonz/sources/toonz/xshcolumnviewer.cpp
+++ b/toonz/sources/toonz/xshcolumnviewer.cpp
@@ -7,7 +7,6 @@
#include "menubarcommandids.h"
#include "columnselection.h"
#include "xsheetdragtool.h"
-#include "tapp.h"
// TnzTools includes
#include "tools/toolhandle.h"
diff --git a/toonz/sources/toonz/xsheetcmd.cpp b/toonz/sources/toonz/xsheetcmd.cpp
index 2a2794903..553832f54 100644
--- a/toonz/sources/toonz/xsheetcmd.cpp
+++ b/toonz/sources/toonz/xsheetcmd.cpp
@@ -33,7 +33,6 @@
#include "toonz/txshsoundtextlevel.h"
#include "toonz/tstageobjecttree.h"
#include "toonz/tstageobjectkeyframe.h"
-#include "toonz/txshcolumn.h"
#include "toonz/stageobjectutil.h"
#include "toonz/toonzfolders.h"
#include "toonz/txshchildlevel.h"
diff --git a/toonz/sources/toonz/xsheetviewer.cpp b/toonz/sources/toonz/xsheetviewer.cpp
index c1340f7e6..37f8fbd27 100644
--- a/toonz/sources/toonz/xsheetviewer.cpp
+++ b/toonz/sources/toonz/xsheetviewer.cpp
@@ -32,7 +32,6 @@
#include "toonz/txshnoteset.h"
#include "toonz/childstack.h"
#include "toonz/txshlevelhandle.h"
-#include "toonz/preferences.h"
#include "tconvert.h"
#include "tenv.h"
diff --git a/toonz/sources/toonzlib/palettecmd.cpp b/toonz/sources/toonzlib/palettecmd.cpp
index bd8a16f41..a133a47f7 100644
--- a/toonz/sources/toonzlib/palettecmd.cpp
+++ b/toonz/sources/toonzlib/palettecmd.cpp
@@ -13,11 +13,9 @@
#include "toonz/txshlevelcolumn.h"
#include "toonz/txshsimplelevel.h"
#include "toonz/cleanupcolorstyles.h"
-#include "toonz/studiopalette.h"
#include "toonz/txshlevel.h"
#include "toonz/toonzscene.h"
#include "toonz/toonzimageutils.h"
-#include "toonz/cleanupcolorstyles.h"
#include "toonz/preferences.h"
// TnzCore includes
diff --git a/toonz/sources/toonzlib/sandor_fxs/YOMBParam.cpp b/toonz/sources/toonzlib/sandor_fxs/YOMBParam.cpp
index 4c86850d7..d42b73b2d 100644
--- a/toonz/sources/toonzlib/sandor_fxs/YOMBParam.cpp
+++ b/toonz/sources/toonzlib/sandor_fxs/YOMBParam.cpp
@@ -18,7 +18,6 @@
#include "STColSelPic.h"
#include "BlurMatrix.h"
#include "SDef.h"
-#include "STColSelPic.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
diff --git a/toonz/sources/toonzlib/scriptbinding.cpp b/toonz/sources/toonzlib/scriptbinding.cpp
index 6a4de119f..aa9850d27 100644
--- a/toonz/sources/toonzlib/scriptbinding.cpp
+++ b/toonz/sources/toonzlib/scriptbinding.cpp
@@ -25,7 +25,6 @@
#include "tvectorrenderdata.h"
#include "tgeometry.h"
#include "toonz/stage.h"
-#include "toonz/tcamera.h"
#include "toonz/txshleveltypes.h"
#include "toonz/levelproperties.h"
#include "toonz/toonzscene.h"
diff --git a/toonz/sources/toonzlib/scriptbinding_level.cpp b/toonz/sources/toonzlib/scriptbinding_level.cpp
index 89864e3b9..4185bbb8c 100644
--- a/toonz/sources/toonzlib/scriptbinding_level.cpp
+++ b/toonz/sources/toonzlib/scriptbinding_level.cpp
@@ -17,7 +17,6 @@
#include "tvectorrenderdata.h"
#include "tgeometry.h"
#include "toonz/stage.h"
-#include "toonz/tcamera.h"
#include "toonz/txshleveltypes.h"
#include "toonz/levelproperties.h"
#include "toonz/toonzscene.h"
@@ -27,7 +26,6 @@
#include "tsystem.h"
#include <QRegExp>
#include <QColor>
-#include "tfiletype.h"
namespace TScriptBinding {
diff --git a/toonz/sources/toonzlib/tcolumnfx.cpp b/toonz/sources/toonzlib/tcolumnfx.cpp
index d26220dfc..04e16ef9d 100644
--- a/toonz/sources/toonzlib/tcolumnfx.cpp
+++ b/toonz/sources/toonzlib/tcolumnfx.cpp
@@ -38,7 +38,6 @@
#include "toonz/levelset.h"
#include "toonz/txshchildlevel.h"
#include "toonz/fxdag.h"
-#include "toonz/tcolumnfx.h"
#include "toonz/tcolumnfxset.h"
#include "toonz/stage.h"
#include "toonz/fill.h"
diff --git a/toonz/sources/toonzlib/xshhandlemanager.cpp b/toonz/sources/toonzlib/xshhandlemanager.cpp
index 670f4716d..35111a9d9 100644
--- a/toonz/sources/toonzlib/xshhandlemanager.cpp
+++ b/toonz/sources/toonzlib/xshhandlemanager.cpp
@@ -7,7 +7,6 @@
#include "toonz/dpiscale.h"
#include "toonz/txshsimplelevel.h"
#include "toonz/stage.h"
-#include "toonz/hook.h"
#include "xshhandlemanager.h"
diff --git a/toonz/sources/toonzqt/camerasettingswidget.cpp b/toonz/sources/toonzqt/camerasettingswidget.cpp
index 501500619..7c77d0884 100644
--- a/toonz/sources/toonzqt/camerasettingswidget.cpp
+++ b/toonz/sources/toonzqt/camerasettingswidget.cpp
@@ -32,7 +32,6 @@
// Qt includes
#include <QGridLayout>
#include <QLabel>
-#include <QGridLayout>
#include <QRadioButton>
#include <QButtonGroup>
#include <QApplication>
@@ -44,7 +43,6 @@
#include <QPainter>
#include <QTextStream>
#include <QString>
-#include <QStringList>
using namespace std;
using namespace DVGui;
diff --git a/toonz/sources/toonzqt/imageutils.cpp b/toonz/sources/toonzqt/imageutils.cpp
index 279e9f19d..4fb2c1683 100644
--- a/toonz/sources/toonzqt/imageutils.cpp
+++ b/toonz/sources/toonzqt/imageutils.cpp
@@ -36,7 +36,6 @@
#include "tfiletype.h"
#include "tfilepath.h"
#include "ttoonzimage.h"
-#include "trasterimage.h"
#include "tvectorimage.h"
#include "tstroke.h"
diff --git a/toonz/sources/toonzqt/pluginhost.cpp b/toonz/sources/toonzqt/pluginhost.cpp
index 895b13072..38e327df8 100644
--- a/toonz/sources/toonzqt/pluginhost.cpp
+++ b/toonz/sources/toonzqt/pluginhost.cpp
@@ -10,7 +10,6 @@
#else
#include <dlfcn.h>
#endif
-#include <string>
#include <map>
#include <type_traits>
#include <functional>
@@ -32,7 +31,6 @@
#include "plugin_param_view_interface.h"
#include "plugin_ui_page_interface.h"
#include "plugin_utilities.h"
-#include "toonz_params.h"
#include <QFileInfo>
#include <QDir>
#include <QLabel>
diff --git a/toonz/sources/toonzqt/stageschematicnode.cpp b/toonz/sources/toonzqt/stageschematicnode.cpp
index 15134cf2a..0cb726724 100644
--- a/toonz/sources/toonzqt/stageschematicnode.cpp
+++ b/toonz/sources/toonzqt/stageschematicnode.cpp
@@ -26,7 +26,6 @@
#include "toonz/txshchildlevel.h"
#include "toonz/txshlevelcolumn.h"
#include "toonz/txshleveltypes.h"
-#include "toonz/txshleveltypes.h"
#include "toonz/tcolumnhandle.h"
#include "toonz/hook.h"
#include "toonz/preferences.h"