From 53d6a7c0e4a907251e7857ba888bc60f83fcf6e0 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Wed, 30 Aug 2017 15:49:14 -0400 Subject: [PATCH] Remove a commented-out function (it confuses yard otherwise). --- lib/cmock_generator_plugin_expect_any_args.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/cmock_generator_plugin_expect_any_args.rb b/lib/cmock_generator_plugin_expect_any_args.rb index 31752ba..0e80844 100644 --- a/lib/cmock_generator_plugin_expect_any_args.rb +++ b/lib/cmock_generator_plugin_expect_any_args.rb @@ -28,7 +28,6 @@ class CMockGeneratorPluginExpectAnyArgs end def mock_function_declarations(function) - if (function[:return][:void?]) return "#define #{function[:name]}_ExpectAnyArgs() #{function[:name]}_CMockExpectAnyArgs(__LINE__)\n" + "void #{function[:name]}_CMockExpectAnyArgs(UNITY_LINE_TYPE cmock_line);\n" @@ -38,19 +37,6 @@ class CMockGeneratorPluginExpectAnyArgs end end - # def mock_implementation(function) - # lines = " if (cmock_call_instance->IgnoreMode == CMOCK_ARG_NONE)\n {\n" - # if (function[:return][:void?]) - # lines << " return;\n }\n" - # else - # retval = function[:return].merge( { :name => "cmock_call_instance->ReturnVal"} ) - # lines << " " + @utils.code_assign_argument_quickly("Mock.#{function[:name]}_FinalReturn", retval) unless (retval[:void?]) - # return_type = function[:return][:const?] ? "(const #{function[:return][:type]})" : ((function[:return][:type] =~ /cmock/) ? "(#{function[:return][:type]})" : '') - # lines << " return #{return_type}cmock_call_instance->ReturnVal;\n }\n" - # end - # lines - # end - def mock_interfaces(function) lines = "" if (function[:return][:void?])