refactoring

This commit is contained in:
rusefi 2018-12-20 00:40:17 -05:00
parent 7e2d448675
commit bcd2ba640f
3 changed files with 1 additions and 8 deletions

Binary file not shown.

View File

@ -212,13 +212,7 @@ public class ConfigDefinition {
state.structures.put(structure.getName(), structure);
cHeaderConsumer.handleEndStruct(structure);
if (state.stack.isEmpty()) {
totalTsSize = structure.writeTunerStudio("", tsHeader, 0);
tsHeader.write("; total TS size = " + totalTsSize + EOL);
VariableRegistry.INSTANCE.register("TOTAL_CONFIG_SIZE", totalTsSize);
}
tsProjectConsumer.handleEndStruct(structure);
if (state.stack.isEmpty()) {
structure.writeJavaFields(state,"", javaFieldsWriter, 0);

View File

@ -86,7 +86,6 @@ public class TSProjectConsumer implements ConfigurationConsumer {
ConfigDefinition.totalTsSize = structure.writeTunerStudio("", tsWriter, 0);
tsWriter.write("; total TS size = " + ConfigDefinition.totalTsSize + EOL);
VariableRegistry.INSTANCE.register("TOTAL_CONFIG_SIZE", ConfigDefinition.totalTsSize);
writeTunerStudioFile(tsPath, tsWriter.toString());
}
}