summaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/csharp
diff options
context:
space:
mode:
authorJan Tattermusch <jtattermusch@google.com>2015-04-17 10:53:06 -0700
committerJan Tattermusch <jtattermusch@google.com>2015-04-17 10:53:06 -0700
commit83a5991d12ecabc3388c99d121892a488ea8ee97 (patch)
tree53e74209346448021e5dda44cf45d4bce4e5e08e /src/google/protobuf/compiler/csharp
parentb36420addb9e1453bd60b2379a4ecf106283b7c3 (diff)
downloadprotobuf-javalite-83a5991d12ecabc3388c99d121892a488ea8ee97.tar.gz
removing csharp_property_name field option
Diffstat (limited to 'src/google/protobuf/compiler/csharp')
-rw-r--r--src/google/protobuf/compiler/csharp/csharp_helpers.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_helpers.cc b/src/google/protobuf/compiler/csharp/csharp_helpers.cc
index c7e9e4cc..cae12e2e 100644
--- a/src/google/protobuf/compiler/csharp/csharp_helpers.cc
+++ b/src/google/protobuf/compiler/csharp/csharp_helpers.cc
@@ -257,9 +257,7 @@ std::string GetFieldConstantName(const FieldDescriptor* field) {
}
std::string GetPropertyName(const FieldDescriptor* descriptor) {
- if (descriptor->options().has_csharp_property_name()) {
- return descriptor->options().csharp_property_name();
- }
+ // TODO(jtattermusch): consider introducing csharp_property_name field option
std::string property_name = UnderscoresToPascalCase(GetFieldName(descriptor));
if (property_name == descriptor->containing_type()->name()) {
property_name += "_";