remove old/dead loop code

This commit is contained in:
Stewart Allen 2021-04-19 21:14:08 -04:00
commit da2fcc6812
3 changed files with 0 additions and 20 deletions

View file

@ -344,7 +344,6 @@
outputPurgeTower: true, outputPurgeTower: true,
outputLayerRetract: false, outputLayerRetract: false,
outputOriginCenter: true, outputOriginCenter: true,
outputLoopLayers: "",
outputLoops: 0, outputLoops: 0,
outputPeelGuard: 0, outputPeelGuard: 0,
outputInvertX: false, outputInvertX: false,

View file

@ -1802,7 +1802,6 @@
fdmSep: UC.newBlank({class:"pop-sep", modes:FDM}), fdmSep: UC.newBlank({class:"pop-sep", modes:FDM}),
outputPeelGuard: UC.newInput(LANG.ag_peel_s, {title:LANG.ag_peel_l, convert:UC.toInt, modes:FDM, comma:true, show:isBelt}), outputPeelGuard: UC.newInput(LANG.ag_peel_s, {title:LANG.ag_peel_l, convert:UC.toInt, modes:FDM, comma:true, show:isBelt}),
gcodePauseLayers: UC.newInput(LANG.ag_paws_s, {title:LANG.ag_paws_l, modes:FDM, comma:true, show:isNotBelt}), gcodePauseLayers: UC.newInput(LANG.ag_paws_s, {title:LANG.ag_paws_l, modes:FDM, comma:true, show:isNotBelt}),
// outputLoopLayers: UC.newInput(LANG.ag_loop_s, {title:LANG.ag_loop_l, modes:FDM, comma:true, show:isBelt}),
outputLoops: UC.newInput(LANG.ag_loop_s, {title:LANG.ag_loop_l, convert:UC.toInt, bound:UC.bound(0,1000), modes:FDM, show:isBelt}), outputLoops: UC.newInput(LANG.ag_loop_s, {title:LANG.ag_loop_l, convert:UC.toInt, bound:UC.bound(0,1000), modes:FDM, show:isBelt}),
outputLayerRetract: UC.newBoolean(LANG.ad_lret_s, onBooleanClick, {title:LANG.ad_lret_l, modes:FDM}), outputLayerRetract: UC.newBoolean(LANG.ad_lret_s, onBooleanClick, {title:LANG.ad_lret_l, modes:FDM}),
outputPurgeTower: UC.newBoolean(LANG.ad_purg_s, onBooleanClick, {title:LANG.ad_purg_l, modes:FDM, show:isMultiHead}), outputPurgeTower: UC.newBoolean(LANG.ad_purg_s, onBooleanClick, {title:LANG.ad_purg_l, modes:FDM, show:isMultiHead}),

View file

@ -52,7 +52,6 @@
blast = 0, blast = 0,
blastz = 0, blastz = 0,
process = settings.process, process = settings.process,
// loops = process.outputLoopLayers,
loops = process.outputLoops || 0, loops = process.outputLoops || 0,
zhop = process.zHopDistance || 0, // range zhop = process.zHopDistance || 0, // range
seekMMM = process.outputSeekrate * 60, seekMMM = process.outputSeekrate * 60,
@ -151,28 +150,11 @@
} }
loops = isBelt && rloops.length ? rloops : undefined; loops = isBelt && rloops.length ? rloops : undefined;
// if (isBelt && loops) {
// loops = loops.split(',').map(range => {
// return range.split('-').map(v => parseInt(v));
// }).filter(a => a.length > 1).map(a => {
// return {
// start: a[0],
// end: a[1] ? a[1] + 1 : Infinity,
// iter: a[2] >= 0 ? a[2] : 1
// }
// });
// }
// if (!isBelt || (loops && loops.length < 1)) {
// loops = undefined;
// }
(process.gcodePauseLayers || "").split(",").forEach(function(lv) { (process.gcodePauseLayers || "").split(",").forEach(function(lv) {
let v = parseInt(lv); let v = parseInt(lv);
if (v >= 0) pause.push(v); if (v >= 0) pause.push(v);
}); });
// console.log(loops)
append = function(line) { append = function(line) {
if (line) { if (line) {
lines++; lines++;