Skip to content

Commit 03d983e

Browse files
committed
Remove unused output buffer
1 parent d92f81d commit 03d983e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/widgets/task_output_terminal.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use adw::prelude::*;
22
use adw::subclass::prelude::*;
33
use gtk::glib;
44
use gtk::{self, gio};
5-
use std::cell::RefCell;
65
use vte4::prelude::*;
76

87
use crate::gtk_utils::ColorPalette;
@@ -17,7 +16,6 @@ mod imp {
1716
#[properties(wrapper_type = super::TaskOutputTerminal)]
1817
pub struct TaskOutputTerminal {
1918
pub terminal: vte4::Terminal,
20-
pub output_buffer: RefCell<String>,
2119
}
2220

2321
#[glib::object_subclass]
@@ -29,7 +27,6 @@ mod imp {
2927
fn new() -> Self {
3028
Self {
3129
terminal: vte4::Terminal::new(),
32-
output_buffer: RefCell::new(String::new()),
3330
}
3431
}
3532
}
@@ -138,7 +135,6 @@ impl TaskOutputTerminal {
138135
let imp = self.imp();
139136
let terminal = &imp.terminal;
140137
terminal.reset(true, true);
141-
*imp.output_buffer.borrow_mut() = String::new();
142138
}
143139

144140
/// Get the terminal widget for advanced operations

0 commit comments

Comments
 (0)