Skip to content

Commit

Permalink
lvstring: drop at() methods
Browse files Browse the repository at this point in the history
Not used anymore.
  • Loading branch information
benoit-pierre committed Nov 1, 2023
1 parent dd6767f commit 0b0c536
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crengine/include/lvstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]; }

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0b0c536

Please sign in to comment.