* remove unused code in modelingMachine * remove unused actions in featureTreeMachine * video.pause is not async * remove unused param in Toolbar * remove unused rectangleOrigin from getRectangleCallExpressions * fmt * parseProjectRoute is not async anymore * prefix unused params with underscore * insertNewStartProfileAt/sketchEntryNodePath param is not used * remove unused constraintType parameter from getRemoveConstraintsTransform * underscore unused params * remove unused scale param in segment.ts * remove unused for in sceneInfra * remove unused sketchEntryNodePath from sceneEntitiesManager methods * remove unused shouldTearDown param * remove unused planeNodePath param from setup draft methods * remove unused ast param
This commit is contained in:
@ -825,7 +825,7 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
|
||||
Object.entries(kclManager.execState.variables)
|
||||
// TODO: @franknoirot && @jtran would love to make this go away soon 🥺
|
||||
.filter(([_, variable]) => variable?.type === 'Number')
|
||||
.map(([name, variable]) => {
|
||||
.map(([name, _variable]) => {
|
||||
const node = getVariableDeclaration(kclManager.ast, name)
|
||||
if (node === undefined) return
|
||||
const range: SourceRange = [node.start, node.end, node.moduleId]
|
||||
@ -926,7 +926,7 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
|
||||
inputType: 'kcl',
|
||||
required: true,
|
||||
createVariable: 'byDefault',
|
||||
variableName(commandBarContext, machineContext) {
|
||||
variableName(commandBarContext, _machineContext) {
|
||||
const { currentValue } = commandBarContext.argumentsToSubmit
|
||||
if (
|
||||
!currentValue ||
|
||||
|
Reference in New Issue
Block a user