From a35f979c1793163b8af1c5b22e294916c25c33f2 Mon Sep 17 00:00:00 2001 From: "jieluo@google.com" Date: Fri, 18 Jul 2014 22:49:35 +0000 Subject: delete unused variable --- src/google/protobuf/descriptor.cc | 2 -- src/google/protobuf/dynamic_message.cc | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/google/protobuf/descriptor.cc b/src/google/protobuf/descriptor.cc index abd13a0b..706e4bf9 100644 --- a/src/google/protobuf/descriptor.cc +++ b/src/google/protobuf/descriptor.cc @@ -226,8 +226,6 @@ struct PointerStringPairHash { } // Used only by MSVC and platforms where hash_map is not available. - static const size_t bucket_size = 4; - static const size_t min_buckets = 8; inline bool operator()(const PointerStringPair& a, const PointerStringPair& b) const { if (a.first < b.first) return true; diff --git a/src/google/protobuf/dynamic_message.cc b/src/google/protobuf/dynamic_message.cc index d3d52113..81c709a0 100644 --- a/src/google/protobuf/dynamic_message.cc +++ b/src/google/protobuf/dynamic_message.cc @@ -749,8 +749,6 @@ void DynamicMessageFactory::DeleteDefaultOneofInstance( for (int i = 0; i < type->oneof_decl_count(); i++) { for (int j = 0; j < type->oneof_decl(i)->field_count(); j++) { const FieldDescriptor* field = type->oneof_decl(i)->field(j); - void* field_ptr = reinterpret_cast( - default_oneof_instance) + offsets[field->index()]; if (field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) { switch (field->options().ctype()) { default: -- cgit v1.2.3