callback: mock_verify() has no effect.

callback has a later priority than expect, so setting call_instance
to CMOCK_GUTS_NONE at this point has no effect.  This mock_verify()
has probably been obsolete for a long time.
This commit is contained in:
John Lindgren
2019-12-05 16:16:48 -05:00
parent bd5fbc30eb
commit 574d532df7
-6
View File
@@ -79,10 +79,4 @@ class CMockGeneratorPluginCallback
lines << " Mock.#{func_name}_CallbackBool = (int)0;\n"
lines << " Mock.#{func_name}_CallbackFunctionPointer = Callback;\n}\n\n"
end
def mock_verify(function)
func_name = function[:name]
" if (Mock.#{func_name}_CallbackFunctionPointer != NULL)\n call_instance = CMOCK_GUTS_NONE;\n"
end
end