summaryrefslogtreecommitdiff
path: root/runtime/base/stringpiece.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/base/stringpiece.cc')
-rw-r--r--runtime/base/stringpiece.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/runtime/base/stringpiece.cc b/runtime/base/stringpiece.cc
index 672431cf9d..aea4e74bb1 100644
--- a/runtime/base/stringpiece.cc
+++ b/runtime/base/stringpiece.cc
@@ -23,13 +23,6 @@
namespace art {
-#if !defined(NDEBUG)
-char StringPiece::operator[](size_type i) const {
- CHECK_LT(i, length_);
- return ptr_[i];
-}
-#endif
-
void StringPiece::CopyToString(std::string* target) const {
target->assign(ptr_, length_);
}