Skip to content

Commit 7f1ca0a

Browse files
authored
Merge pull request #284 from sblondon/remove-unused-variables
clean: remove unused variables
2 parents 95da2b3 + 65bf2b5 commit 7f1ca0a

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/samples/gu/integerdrawing/integerdrawing.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ int main(int argc, char* argv[]) {
223223
pspDebugScreenInit();
224224

225225
unsigned int old = 0;
226-
unsigned int flags = PSP_CTRL_CIRCLE | PSP_CTRL_CROSS;
227226

228227
int tex = 1;
229228

src/samples/gu/morphskin/morphskin.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,10 @@ void genSkinnedMonsterCylinder( unsigned slices, unsigned rows, float length, fl
268268
struct MorphVertex* curr = &dstMorphVertices[i+j*rows];
269269
float s = i + 0.5f;
270270
float t = j;
271-
float cs,ct,ss,st;
271+
float ct,st;
272272
float d0, d1, combinedDeform;
273273

274-
cs = cosf(s * (2*GU_PI)/slices);
275274
ct = cosf(t * (2*GU_PI)/rows);
276-
ss = sinf(s * (2*GU_PI)/slices);
277275
st = sinf(t * (2*GU_PI)/rows);
278276

279277
curr->v[0].nx = 0;

src/samples/gu/skinning/skinning.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,10 @@ void genSkinnedCylinder( unsigned slices, unsigned rows, float length, float rad
249249
for (i = 0; i < rows; ++i)
250250
{
251251
struct Vertex* curr = &dstVertices[i+j*rows];
252-
float s = i + 0.5f;
253252
float t = j;
254-
float cs,ct,ss,st;
253+
float ct,st;
255254

256-
cs = cosf(s * (2*GU_PI)/slices);
257255
ct = cosf(t * (2*GU_PI)/rows);
258-
ss = sinf(s * (2*GU_PI)/slices);
259256
st = sinf(t * (2*GU_PI)/rows);
260257

261258
curr->nx = 0;

0 commit comments

Comments
 (0)