aboutsummaryrefslogtreecommitdiff
path: root/src/grid/storage.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-04-02 08:44:54 -0700
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:56:50 -0700
commitb19045da66899999856c6b2cc6707b60c607660a (patch)
tree79e3ebe269f3122b762fe940173a2e1a56eccf38 /src/grid/storage.rs
parentf66e3e457bdda808cc3f994a02fd6f7ce5ba381e (diff)
downloadalacritty-b19045da66899999856c6b2cc6707b60c607660a.tar.gz
alacritty-b19045da66899999856c6b2cc6707b60c607660a.zip
Fix BCE ref tests
BCE was broken in attempt to optimize row clearing. The fix is to revert to passing in the current cursor state when clearing.
Diffstat (limited to 'src/grid/storage.rs')
-rw-r--r--src/grid/storage.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/grid/storage.rs b/src/grid/storage.rs
index 0f1ba9c5..b620b9c0 100644
--- a/src/grid/storage.rs
+++ b/src/grid/storage.rs
@@ -57,11 +57,6 @@ impl<T> Storage<T> {
}
#[inline]
- pub fn pop(&mut self) -> Option<T> {
- self.inner.pop()
- }
-
- #[inline]
pub fn len(&self) -> usize {
self.inner.len()
}
@@ -76,12 +71,6 @@ impl<T> Storage<T> {
((self.len() + self.zero + *self.visible_lines) - *requested) % self.len()
}
- pub fn swap(&mut self, a: usize, b: usize) {
- let a = self.compute_index(a);
- let b = self.compute_index(b);
- self.inner.swap(a, b);
- }
-
pub fn swap_lines(&mut self, a: Line, b: Line) {
let a = self.compute_line_index(a);
let b = self.compute_line_index(b);