Skip to content

Commit 9bb968f

Browse files
committed
Remove done TODOs
1 parent b4213c3 commit 9bb968f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/chunker.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ struct ChunkStats {
2020
altstack_output_size: usize,
2121
}
2222

23-
//TODO: Refactor the undoing with this struct
2423
pub struct UndoInfo {
2524
call_stack: Vec<Box<StructuredScript>>,
2625
size: usize,
@@ -260,9 +259,7 @@ impl Chunker {
260259
match block {
261260
Block::Call(id) => {
262261
let sub_builder = builder.script_map.get(id).unwrap();
263-
self.call_stack.push(Box::new(sub_builder.clone())); //TODO: Avoid cloning here by
264-
//putting Box<Builder> into
265-
//the script_map
262+
self.call_stack.push(Box::new(sub_builder.clone()));
266263
contains_call = true;
267264
}
268265
Block::Script(script_buf) => {

0 commit comments

Comments
 (0)