[thrift] don't scope non-service types in Erlang
authorChristopher Piro <cpiro@apache.org>
Tue, 9 Oct 2007 04:41:48 +0000 (04:41 +0000)
committerChristopher Piro <cpiro@apache.org>
Tue, 9 Oct 2007 04:41:48 +0000 (04:41 +0000)
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

compiler/cpp/src/generate/t_erl_generator.cc

index 9c093d7..3d4d1d7 100644 (file)
@@ -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()) {