From fb06ce217f498f2a773eec7c3c2538882df5c021 Mon Sep 17 00:00:00 2001 From: kayomn Date: Wed, 22 Feb 2023 15:39:28 +0000 Subject: [PATCH] Remove unsafe raw pointer accessors from coral::stack --- source/coral/sequence.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/source/coral/sequence.cpp b/source/coral/sequence.cpp index 8418da4..68b8be7 100644 --- a/source/coral/sequence.cpp +++ b/source/coral/sequence.cpp @@ -88,34 +88,6 @@ export namespace coral { return append_result::ok; } - /** - * Returns the beginning of the elements as a mutable pointer. - */ - element * begin() { - return this->elements.pointer; - } - - /** - * Returns the beginning of the elements as a const pointer. - */ - element const * begin() const { - return this->elements.pointer; - } - - /** - * Returns the ending of the elements as a mutable pointer. - */ - element * end() { - return this->elements.pointer + this->filled; - } - - /** - * Returns the ending of the elements as a const pointer. - */ - element const * end() const { - return this->elements.pointer + this->filled; - } - /** * Returns `true` if the stack is backed by dynamic memory, otherwise `false`. */