summaryrefslogtreecommitdiff
path: root/runtime/base/stringpiece.cc
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2018-02-16 01:28:31 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-02-16 01:28:31 +0000
commit3e55ea3118c97f0ffecc24939a193a9d40dc315d (patch)
treecbb4230d449d0837e6a62e32b24fb3a93ad4d2ea /runtime/base/stringpiece.cc
parent7fe39afe80098d147e34149dac1d6304e858fe44 (diff)
parentfcbe15ce26930c0c4bb33998fc2abbe4f8770dbe (diff)
Merge "Build debug library libdexfiled"
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_);
}