Skip to content

Commit

Permalink
remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
triwav committed Aug 22, 2023
1 parent 3001f27 commit e246128
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions webviews/src/views/RokuAutomationView/RokuAutomationView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
window.vscode = acquireVsCodeApi();
let list = [{name: "foo", id: 0}, {name: "bar", id: 1},
{name: "bob", id: 2}, {name: "jean", id: 3}];
let loading = true;
let currentRunningStep = -1;
Expand Down Expand Up @@ -145,11 +142,8 @@
const configs = message.context.configs;
if (configs) {
const config = configs[0];
console.log('config.steps', config.steps);
steps = config.steps;
autorunOnDeploy = message.context.autorunOnDeploy;
console.log('autorunOnDeploy', autorunOnDeploy);
} else {
steps = [{
type: 'sleep',
Expand All @@ -164,7 +158,7 @@
currentRunningStep = message.context.step;
console.log('currentRunningStep', currentRunningStep);
if (currentRunningStep === -1) {
// Once we finish running all current steps update our last step date in case we want to add any more steps
// Once we finish running all current steps, update our last step date in case we want to add any more steps
lastStepDate = Date.now();
}
});
Expand All @@ -175,7 +169,6 @@
// Round to the nearest tenth
elapsedTime = (Math.round(elapsedTime * 10) / 10);
console.log('elapsedTime', elapsedTime);
steps.push({
type: stepTypes.sleep.type,
Expand All @@ -185,8 +178,6 @@ console.log('elapsedTime', elapsedTime);
intermediary.observeEvent(ViewProviderEvent.onRokuAutomationKeyPressed, (message) => {
let {key, literalCharacter} = message.context;
console.log('key', key);
console.log('literalCharacter', literalCharacter);
if (literalCharacter) {
// Check if we were typing somethign before and if so just add on to it
const lastStep = steps.at(-1);
Expand Down

0 comments on commit e246128

Please sign in to comment.