diff --git a/3d-models.cpp b/3d-models.cpp index 5bc741f56..72ec1d0b3 100644 --- a/3d-models.cpp +++ b/3d-models.cpp @@ -548,8 +548,6 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push, auto gbody = body; - int it = 0; - vector nextid(n); vector lastid(n); vector stillin(n, true); @@ -558,7 +556,6 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push, nextid[n-1] = n-1; lastid[0] = 0; while(true) { - it++; int cand = -1; ld cv = 0; for(int i=1; i pss; @@ -800,8 +796,7 @@ void geometry_information::adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye ld mindist = 1e9; for(int i=0; i& ad, int j, cell *c) { int a = 0; for(auto& dd: ad1) if(dd == 1) a++; - int a0 = 0; - for(auto& dd: ad) if(dd == 1) a0++; return a < 6; } diff --git a/checkmove.cpp b/checkmove.cpp index 16a5d1f01..0472d6d84 100644 --- a/checkmove.cpp +++ b/checkmove.cpp @@ -339,7 +339,6 @@ EX void create_yasc_message() { bool in_ctx = true; set blocks; - int index = 0; for(auto c: all) { if(c.type == miENTITY && !captures.count({c.where, blocking_monster_name(c)})) blocks.insert(blocking_monster_name(c)); else if(c.type == miWALL && c.subtype == siMONSTER && !captures.count({c.where, blocking_monster_name(c)})) blocks.insert(blocking_monster_name(c)); @@ -359,7 +358,6 @@ EX void create_yasc_message() { else if(c.where && c.where->wall != cwt.at->wall) blocks.insert(dnameof(c.where->wall)); } else if(c.type == siWARP) blocks.insert("warp"); - index++; } if(!blocks.empty()) { @@ -481,4 +479,4 @@ EX void checkmove() { } -} \ No newline at end of file +} diff --git a/earcut.hpp b/earcut.hpp index 8b3de301a..1caf8b43e 100644 --- a/earcut.hpp +++ b/earcut.hpp @@ -280,11 +280,8 @@ void Earcut::earcutLinked(Node* ear, int pass) { Node* prev; Node* next; - int iterations = 0; - // iterate through ears, slicing them one by one while (ear->prev != ear->next) { - iterations++; prev = ear->prev; next = ear->next; diff --git a/rulegen3.cpp b/rulegen3.cpp index 3a5af5312..e3cc3b89d 100644 --- a/rulegen3.cpp +++ b/rulegen3.cpp @@ -1288,9 +1288,6 @@ EX void test_transducers() { swap(cum, result); ctid = t_origin[ctid].at->cmove(c)->id; } - int err = 0; - for(auto duc: cum) for(auto p: duc.second.t) - if(p.first.first == ENDED || p.first.second != p.first.first) err++; throw_identity_errors(cum, cyc.dirs); if(id_size != isize(cum)) println(hlog, "error: identity not recovered correctly"); } @@ -1761,4 +1758,4 @@ auto hook3 = addHook(hooks_args, 100, readRuleArgs3); EX } #endif -} \ No newline at end of file +}