]> granicus.if.org Git - icinga2/commitdiff
Remove unused prototypes in the THPP files
authorGunnar Beutner <gunnar@beutner.name>
Sat, 28 Mar 2015 22:38:05 +0000 (23:38 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 28 Mar 2015 22:38:05 +0000 (23:38 +0100)
refs #8890

tools/mkclass/classcompiler.cpp

index ae2abbad0421b5df4ae9aa1a35223b757d4ec8ae..798ca25dc000a856edfc13d1ff3a0e56fa6a1394 100644 (file)
@@ -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<Rule>& rules, const std::string& field, const FieldType& fieldType, ValidatorType validatorType)
 {
-       m_Header << "void TIValidate" << name << "(const intrusive_ptr<ObjectImpl<" << klass << "> >& object, ";
-       m_Impl << "void TIValidate" << name << "(const intrusive_ptr<ObjectImpl<" << klass << "> >& object, ";
+       m_Impl << "static void TIValidate" << name << "(const intrusive_ptr<ObjectImpl<" << klass << "> >& 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<String>& location, const ValidationUtils& utils);" << std::endl;
-
        m_Impl << fieldType.GetArgumentType() << " value, std::vector<String>& location, const ValidationUtils& utils)" << std::endl
               << "{" << std::endl;