summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-09-14 04:33:24 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-09-14 04:34:14 -0700
commit5655528c41830f733160de4fb0b99073841bae9e (patch)
tree83d1f01b77db66ef718ab7b459e7683c130b6121 /absl
parent9e1789ffea47fdeb3133aa42aa9592f3673fb6ed (diff)
Remove unused internal function `InlineRep::empty()` which has misleading semantics.
PiperOrigin-RevId: 565330231 Change-Id: I84f0e9065986bb592b5bfb196b3fc221feb14bc4
Diffstat (limited to 'absl')
-rw-r--r--absl/strings/cord.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/absl/strings/cord.h b/absl/strings/cord.h
index dbfca805..1d30fde8 100644
--- a/absl/strings/cord.h
+++ b/absl/strings/cord.h
@@ -853,7 +853,6 @@ class Cord {
explicit constexpr InlineRep(absl::string_view sv, CordRep* rep);
void Swap(InlineRep* rhs);
- bool empty() const;
size_t size() const;
const char* data() const; // Returns nullptr if holding pointer
void set_data(const char* data, size_t n); // Discards pointer, if any
@@ -1170,8 +1169,6 @@ inline absl::cord_internal::CordRep* Cord::InlineRep::tree() const {
}
}
-inline bool Cord::InlineRep::empty() const { return data_.is_empty(); }
-
inline size_t Cord::InlineRep::size() const {
return is_tree() ? as_tree()->length : inline_size();
}