aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/generated_message_reflection.cc
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2015-08-29 16:42:55 -0700
committerGravatar Feng Xiao <xfxyjwf@gmail.com>2015-08-29 16:42:55 -0700
commit0087da9d4775f79c67362cc89c653f3a33a9bae2 (patch)
tree7206d741b7a4d9d256410e76c932dfa60790bf91 /src/google/protobuf/generated_message_reflection.cc
parentcee703d736fb7e6e001ac22476390b5ccc0d794a (diff)
parentf0640b5a046522d7ffbab02b87a8ce9a654f79d1 (diff)
Merge remote-tracking branch 'origin/master' into beta-1
Conflicts: src/google/protobuf/extension_set.h
Diffstat (limited to 'src/google/protobuf/generated_message_reflection.cc')
-rw-r--r--src/google/protobuf/generated_message_reflection.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/google/protobuf/generated_message_reflection.cc b/src/google/protobuf/generated_message_reflection.cc
index b9957e75..eee024ee 100644
--- a/src/google/protobuf/generated_message_reflection.cc
+++ b/src/google/protobuf/generated_message_reflection.cc
@@ -58,18 +58,6 @@ bool IsMapFieldInApi(const FieldDescriptor* field) {
}
} // anonymous namespace
-int StringSpaceUsedExcludingSelf(const string& str) {
- const void* start = &str;
- const void* end = &str + 1;
-
- if (start <= str.data() && str.data() < end) {
- // The string's data is stored inside the string object itself.
- return 0;
- } else {
- return str.capacity();
- }
-}
-
bool ParseNamedEnum(const EnumDescriptor* descriptor,
const string& name,
int* value) {