From 8896a54720f6fe760b163378e18f9440b48706c9 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Tue, 23 Jan 2007 23:22:35 +0000 Subject: [PATCH] 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 --- compiler/cpp/src/generate/t_php_generator.cc | 4 ---- 1 file changed, 4 deletions(-) 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; } -- 2.17.1