summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/storage.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/storage.cc b/src/storage.cc
index c13b9db..890a137 100644
--- a/src/storage.cc
+++ b/src/storage.cc
@@ -30,12 +30,9 @@ Storage::Storage(int delay)
}
std::vector<std::array<signed int, LINE_SIZE>>
-Storage::view(int base, int lines) const
+Storage::get_data() const
{
- base = (base / LINE_SIZE) * LINE_SIZE;
- std::vector<std::array<signed int, LINE_SIZE>> ret(lines + 1);
- std::copy(this->data->begin() + base, this->data->begin() + base + lines, ret.begin());
- return ret;
+ return *data;
}
int