From 0b0c536ce7525190b08beb6da82cac7f7f92bbdd Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Tue, 24 Oct 2023 19:12:37 +0200 Subject: [PATCH] lvstring: drop `at()` methods Not used anymore. --- crengine/include/lvstring.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crengine/include/lvstring.h b/crengine/include/lvstring.h index 22e0d59c1..7a42ae918 100644 --- a/crengine/include/lvstring.h +++ b/crengine/include/lvstring.h @@ -560,8 +560,6 @@ class lString8 /// calculate hash lUInt32 getHash() const; - /// get character at specified position with range check - value_type & at( size_type pos ) { if (pos > (size_type)pchunk->len) crFatalError(); return modify()[pos]; } /// get character at specified position without range check value_type operator [] ( size_type pos ) const { return pchunk->buf8[pos]; } @@ -819,8 +817,6 @@ class lString32 /// calculates hash for string lUInt32 getHash() const; - /// returns character at specified position, with index bounds checking, fatal error if fails - value_type & at( size_type pos ) { if ((unsigned)pos > (unsigned)pchunk->len) crFatalError(); return modify()[pos]; } /// returns character at specified position, without index bounds checking value_type operator [] ( size_type pos ) const { return pchunk->buf32[pos]; } /// resizes string, copies if several references exist