No need to generate private __construct() function if the class is already final
authorMark Slee <mcslee@apache.org>
Tue, 23 Jan 2007 23:22:35 +0000 (23:22 +0000)
committerMark Slee <mcslee@apache.org>
Tue, 23 Jan 2007 23:22:35 +0000 (23:22 +0000)
Reviewed By: lucas

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664935 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_php_generator.cc

index 092244e..cb11d48 100644 (file)
@@ -110,10 +110,6 @@ void t_php_generator::generate_enum(t_enum* tenum) {
       "const " << (*c_iter)->get_name() << " = " << value << ";" << endl;
   }
 
-  // Prevent instantiation of this class
-  f_types_ <<
-    indent() << "private function __construct() {}" << endl;
-
   indent_down();
   f_types_ << "}" << endl << endl;
 }