refactor: remove unused parameter

This commit is contained in:
Paul Pacheco 2019-04-06 08:21:38 -05:00
parent 81c9644a07
commit 683ada6bd1

View File

@ -272,7 +272,7 @@ public static void RegisterWriteFunc(string name, MethodDefinition newWriterFunc
WeaveLists.writeFuncs[name] = newWriterFunc;
WeaveLists.generatedWriteFunctions.Add(newWriterFunc);
ConfirmGeneratedCodeClass(CurrentAssembly.MainModule);
ConfirmGeneratedCodeClass();
WeaveLists.generateContainerClass.Methods.Add(newWriterFunc);
}
@ -337,7 +337,7 @@ public static void RegisterReadFunc(string name, MethodDefinition newReaderFunc)
WeaveLists.readFuncs[name] = newReaderFunc;
WeaveLists.generatedReadFunctions.Add(newReaderFunc);
ConfirmGeneratedCodeClass(CurrentAssembly.MainModule);
ConfirmGeneratedCodeClass();
WeaveLists.generateContainerClass.Methods.Add(newReaderFunc);
}
@ -676,7 +676,7 @@ static MethodDefinition GenerateReadFunction(TypeReference variable)
return readerFunc;
}
static void ConfirmGeneratedCodeClass(ModuleDefinition moduleDef)
static void ConfirmGeneratedCodeClass()
{
if (WeaveLists.generateContainerClass == null)
{