Skip to content

Commit

Permalink
Remove definitions of `StorageSubstr{Without,With}CallOperator::ToStr…
Browse files Browse the repository at this point in the history
…ingView()`.

They are equivalent to the definition in `StorageSubstrBase`. This reduces code
size.

PiperOrigin-RevId: 646920277
  • Loading branch information
QrczakMK committed Jun 26, 2024
1 parent 8ddf239 commit 50aca31
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions riegeli/base/external_ref_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,6 @@ class ExternalRef {
arg_ = &arg;
}

static absl::string_view ToStringView(StorageBase* storage) {
return substr(storage);
}

static void ToChain(StorageBase* storage, size_t max_bytes_to_copy,
void* context, UseStringViewFunction use_string_view,
UseChainRawBlockFunction use_chain_raw_block) {
Expand Down Expand Up @@ -961,10 +957,6 @@ class ExternalRef {
object_ = &reference;
}

static absl::string_view ToStringView(StorageBase* storage) {
return substr(storage);
}

static void ToChain(StorageBase* storage, size_t max_bytes_to_copy,
void* context, UseStringViewFunction use_string_view,
UseChainRawBlockFunction use_chain_raw_block) {
Expand Down

0 comments on commit 50aca31

Please sign in to comment.