From: Mark Slee Date: Tue, 23 Jan 2007 23:22:35 +0000 (+0000) Subject: No need to generate private __construct() function if the class is already final X-Git-Tag: 0.2.0~1537 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=8896a54720f6fe760b163378e18f9440b48706c9;p=common%2Fthrift.git No need to generate private __construct() function if the class is already final Reviewed By: lucas git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664935 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/generate/t_php_generator.cc b/compiler/cpp/src/generate/t_php_generator.cc index 092244e0..cb11d489 100644 --- a/compiler/cpp/src/generate/t_php_generator.cc +++ b/compiler/cpp/src/generate/t_php_generator.cc @@ -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; }