From: Christopher Piro Date: Tue, 9 Oct 2007 04:41:48 +0000 (+0000) Subject: [thrift] don't scope non-service types in Erlang X-Git-Tag: 0.2.0~1177 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4c3d7b84b62c7a0f5974e376a0cb32fe599d0277;p=common%2Fthrift.git [thrift] don't scope non-service types in Erlang Summary: kind of funny ... exact same patch as for the Ruby version; both were unexposed until I tried using reflection_limited Test Plan: thx but nothx Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665295 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/generate/t_erl_generator.cc b/compiler/cpp/src/generate/t_erl_generator.cc index 9c093d7a..3d4d1d7b 100644 --- a/compiler/cpp/src/generate/t_erl_generator.cc +++ b/compiler/cpp/src/generate/t_erl_generator.cc @@ -1531,13 +1531,6 @@ string t_erl_generator::argument_list(t_struct* tstruct) { string t_erl_generator::type_name(t_type* ttype) { string prefix = ""; - t_program* program = ttype->get_program(); - if (program != NULL && program != program_) { - if (!ttype->is_service()) { - prefix = program->get_name() + "_types."; // TODO - } - } - string name = ttype->get_name(); if (ttype->is_struct() || ttype->is_xception() || ttype->is_service()) {