style: remove listIn and listOut (#1669)

This commit is contained in:
Piotr Idzik
2024-06-11 22:11:12 +02:00
committed by GitHub
parent 79b93d35b6
commit 0182bcacd0

View File

@ -29,24 +29,6 @@ class Queue {
return top
}
}
// display elements of the inputstack
listIn(output = (value) => console.log(value)) {
let i = 0
while (i < this.inputStack.length) {
output(this.inputStack[i])
i++
}
}
// display element of the outputstack
listOut(output = (value) => console.log(value)) {
let i = 0
while (i < this.outputStack.length) {
output(this.outputStack[i])
i++
}
}
}
export { Queue }