From 8c75e16b2a6d82b84675d43cd4fdf8618b340ba3 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 28 Mar 2015 23:38:05 +0100 Subject: [PATCH] Remove unused prototypes in the THPP files refs #8890 --- tools/mkclass/classcompiler.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp index ae2abbad0..798ca25dc 100644 --- a/tools/mkclass/classcompiler.cpp +++ b/tools/mkclass/classcompiler.cpp @@ -640,18 +640,13 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&) void ClassCompiler::CodeGenValidator(const std::string& name, const std::string& klass, const std::vector& rules, const std::string& field, const FieldType& fieldType, ValidatorType validatorType) { - m_Header << "void TIValidate" << name << "(const intrusive_ptr >& object, "; - m_Impl << "void TIValidate" << name << "(const intrusive_ptr >& object, "; + m_Impl << "static void TIValidate" << name << "(const intrusive_ptr >& object, "; - if (validatorType != ValidatorField) { - m_Header << "const String& key, "; + if (validatorType != ValidatorField) m_Impl << "const String& key, "; - } bool static_known_attribute = false; - m_Header << fieldType.GetArgumentType() << " value, std::vector& location, const ValidationUtils& utils);" << std::endl; - m_Impl << fieldType.GetArgumentType() << " value, std::vector& location, const ValidationUtils& utils)" << std::endl << "{" << std::endl;