OpenToonz - An open-source full-featured 2D animation creation software
C
Remove unused vars (#1841)
romeojulietthotel12386f235286
diff --git a/toonz/sources/colorfx/colorfx.cpp b/toonz/sources/colorfx/colorfx.cppindex f6cedc95c..492b3b265 100644--- a/toonz/sources/colorfx/colorfx.cpp+++ b/toonz/sources/colorfx/colorfx.cpp@@ -1,6 +1,6 @@-// #include "tpluginmanager.h"+#include "strokestyles.h"#include "regionstyles.h"#include "rasterstyles.h"diff --git a/toonz/sources/colorfx/colorfxutils.cpp b/toonz/sources/colorfx/colorfxutils.cppindex 3dcbae17d..1073cd2e0 100644--- a/toonz/sources/colorfx/colorfxutils.cpp+++ b/toonz/sources/colorfx/colorfxutils.cpp@@ -1,7 +1,5 @@-//#include "tutil.h"-//#include "tgl.h"#include "colorfxutils.h"#include "drawutil.h"#include "tregion.h"@@ -152,8 +150,6 @@ void SFlashUtils::PointVector2QuadsArray(const std::vector<T3DPointD> &pv,std::vector<TQuadratic *> &quadArray,std::vector<TQuadratic *> &toBeDeleted,const bool isRounded) const {- std::vector<T3DPointD>::const_iterator ipv = pv.begin();- std::vector<T3DPointD>::const_iterator ipve = pv.end();int nbPv = pv.size();quadArray.clear();@@ -235,17 +231,14 @@ void SFlashUtils::drawRegionOutline(TFlash &flash, const bool isRounded) const {int SFlashUtils::nbDiffVerts(const std::vector<TPointD> &pv) const {std::vector<TPointD> lpv;- bool isMissing[4] = {true, true, true, true};if (pv.size() == 0) return 0;lpv.push_back(pv[0]);- isMissing[0] = false;for (int i = 1; i < (int)pv.size(); i++) {bool isDiff = true;for (int j = 0; j < (int)lpv.size() && isDiff; j++)isDiff = lpv[j] == pv[i] ? false : isDiff;if (isDiff) {lpv.push_back(pv[i]);- isMissing[i] = false;}}return lpv.size();diff --git a/toonz/sources/colorfx/regionstyles.cpp b/toonz/sources/colorfx/regionstyles.cppindex 9a9d472b3..65b2ba27b 100644--- a/toonz/sources/colorfx/regionstyles.cpp+++ b/toonz/sources/colorfx/regionstyles.cpp@@ -4,18 +4,10 @@#include "tgl.h"#include "tcolorfunctions.h"#include "trandom.h"-//#include "tsystem.h"-//#include "tvectorrenderdata.h"#include "colorfxutils.h"-//#include "tgl.h"-//#include "tregionoutline.h"-//#include "tpalette.h"-//#include "tvectorimage.h"-//#include "tstroke.h"#include "tflash.h"#include "tregion.h"#include "tcurves.h"-//#include "drawutil.h"#include "tmathutil.h"#include "tstencilcontrol.h"@@ -663,17 +655,14 @@ double ShadowStyle2::getParamValue(TColorStyle::double_tag, int index) const {static int nbDiffVerts(const std::vector<TPointD> &pv) {std::vector<TPointD> lpv;- bool isMissing[4] = {true, true, true, true};if (pv.size() == 0) return 0;lpv.push_back(pv[0]);- isMissing[0] = false;for (int i = 1; i < (int)pv.size(); i++) {bool isDiff = true;for (int j = 0; j < (int)lpv.size() && isDiff; j++)isDiff = lpv[j] == pv[i] ? false : isDiff;if (isDiff) {lpv.push_back(pv[i]);- isMissing[i] = false;}}return lpv.size();diff --git a/toonz/sources/stdfx/iwa_soapbubblefx.cpp b/toonz/sources/stdfx/iwa_soapbubblefx.cppindex d7593867a..a1d278a4c 100644--- a/toonz/sources/stdfx/iwa_soapbubblefx.cpp+++ b/toonz/sources/stdfx/iwa_soapbubblefx.cpp@@ -717,7 +717,7 @@ void Iwa_SoapBubbleFx::processNoise(float* thickness_map_p, float* depth_map_p,float* ph_p = noise_phases;srand(0);- /* Set the phase differences (0-2��) */+ /* Set the phase differences (0-2) */for (int i = 0; i < whole_noise_amount; i++, ph_p++) {*ph_p = (float)rand() / (float)RAND_MAX * 2.0f * PI;}@@ -1062,4 +1062,4 @@ void Iwa_SoapBubbleFx::fitThicknessPatches(TRasterP thickRas,//==============================================================================-FX_PLUGIN_IDENTIFIER(Iwa_SoapBubbleFx, "iwa_SoapBubbleFx");\ No newline at end of file+FX_PLUGIN_IDENTIFIER(Iwa_SoapBubbleFx, "iwa_SoapBubbleFx");