Remove unused vars (#1841)

* Remove double byte glyph from comment.

* Remove unused variables and some commented includes.
This commit is contained in:
romeojulietthotel 2018-04-19 19:12:45 -07:00 committed by shun-iwasawa
parent 0f887805c7
commit 12386f2352
4 changed files with 3 additions and 21 deletions

View file

@ -1,6 +1,6 @@
// #include "tpluginmanager.h"
#include "strokestyles.h"
#include "regionstyles.h"
#include "rasterstyles.h"

View file

@ -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();

View file

@ -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();

View file

@ -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");
FX_PLUGIN_IDENTIFIER(Iwa_SoapBubbleFx, "iwa_SoapBubbleFx");