From de6ccea3c6d23b788acecb0744221a4f6078597a Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 27 Apr 2025 00:11:54 -0400 Subject: Replace view function with get_data --- src/storage.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/storage.cc') 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> -Storage::view(int base, int lines) const +Storage::get_data() const { - base = (base / LINE_SIZE) * LINE_SIZE; - std::vector> ret(lines + 1); - std::copy(this->data->begin() + base, this->data->begin() + base + lines, ret.begin()); - return ret; + return *data; } int -- cgit v1.2.3