only:dead method
This commit is contained in:
parent
c80eb96fca
commit
c07e9f76aa
|
@ -168,7 +168,7 @@ public class LiveDataProcessor {
|
|||
gaugeConsumer.outputNames = outputNames;
|
||||
|
||||
List<JavaSensorsConsumer> javaSensorsConsumers = new ArrayList<>();
|
||||
for (int i = 0; i < tempLimit(outputNames); i++) {
|
||||
for (int i = 0; i < outputNames.length; i++) {
|
||||
JavaSensorsConsumer javaSensorsConsumer = new JavaSensorsConsumer(startingPosition.get());
|
||||
state.addDestination(javaSensorsConsumer);
|
||||
javaSensorsConsumers.add(javaSensorsConsumer);
|
||||
|
@ -181,7 +181,7 @@ public class LiveDataProcessor {
|
|||
|
||||
List<FragmentDialogConsumer> fragmentConsumers = new ArrayList<>();
|
||||
|
||||
for (int i = 0; i < tempLimit(outputNames); i++) {
|
||||
for (int i = 0; i < outputNames.length; i++) {
|
||||
|
||||
String variableNameSuffix = outputNames.length > 1 ? Integer.toString(i) : "";
|
||||
FragmentDialogConsumer fragmentDialogConsumer = new FragmentDialogConsumer(name, variableNameSuffix);
|
||||
|
@ -281,7 +281,7 @@ public class LiveDataProcessor {
|
|||
.append(type)
|
||||
.append(">{},\n");
|
||||
} else {
|
||||
for (int i = 0; i < tempLimit(outputNamesArr); i++) {
|
||||
for (int i = 0; i < outputNamesArr.length; i++) {
|
||||
enumContent.append(enumName + i + ",\n");
|
||||
}
|
||||
|
||||
|
@ -355,10 +355,6 @@ public class LiveDataProcessor {
|
|||
}
|
||||
}
|
||||
|
||||
public static int tempLimit(String[] outputs) {
|
||||
return outputs.length;
|
||||
}
|
||||
|
||||
public static boolean needComment(int index) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ import com.rusefi.output.FileJavaFieldsConsumer;
|
|||
import java.util.Date;
|
||||
|
||||
import static com.rusefi.VariableRegistry.quote;
|
||||
import static com.rusefi.ldmp.LiveDataProcessor.tempLimit;
|
||||
|
||||
/**
|
||||
* generator for {@link StateDictionaryFactory}
|
||||
|
@ -24,7 +23,7 @@ import static com.rusefi.ldmp.LiveDataProcessor.tempLimit;
|
|||
if (outputNames.length < 2) {
|
||||
append(name, javaName, cppFileName, "");
|
||||
} else {
|
||||
for (int i = 0; i < tempLimit(outputNames); i++) {
|
||||
for (int i = 0; i < outputNames.length; i++) {
|
||||
append(name, javaName, cppFileName, Integer.toString(i));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,6 @@ public class FileJavaFieldsConsumer extends JavaFieldsConsumer {
|
|||
lazyFile.write("package " + JAVA_PACKAGE + ";" + ToolUtil.EOL + ToolUtil.EOL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void endFile() throws IOException {
|
||||
javaFields.write(state.getVariableRegistry().getJavaConstants());
|
||||
javaFields.write(getContent());
|
||||
|
|
|
@ -10,7 +10,6 @@ import java.io.IOException;
|
|||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.rusefi.ldmp.LiveDataProcessor.tempLimit;
|
||||
import static com.rusefi.output.DataLogConsumer.getHumanGaugeName;
|
||||
|
||||
public class GaugeConsumer implements ConfigurationConsumer {
|
||||
|
@ -27,7 +26,7 @@ public class GaugeConsumer implements ConfigurationConsumer {
|
|||
@Override
|
||||
public void handleEndStruct(ReaderState readerState, ConfigStructure structure) throws IOException {
|
||||
if (readerState.isStackEmpty()) {
|
||||
for (int i = 0; i < tempLimit(outputNames); i++) {
|
||||
for (int i = 0; i < outputNames.length; i++) {
|
||||
|
||||
String variableNameSuffix = outputNames.length > 1 ? Integer.toString(i) : "";
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
|||
|
||||
import static com.devexperts.logging.Logging.getLogging;
|
||||
import static com.rusefi.ldmp.LiveDataProcessor.needComment;
|
||||
import static com.rusefi.ldmp.LiveDataProcessor.tempLimit;
|
||||
|
||||
/**
|
||||
* TODO: We have to move either forward or backwards with newparse #4441
|
||||
|
@ -41,7 +40,7 @@ public class OutputsSectionConsumer implements ConfigurationConsumer {
|
|||
public void handleEndStruct(ReaderState readerState, ConfigStructure structure) throws IOException {
|
||||
log.info("handleEndStruct");
|
||||
|
||||
for (int i = 0; i < tempLimit(outputNames); i++) {
|
||||
for (int i = 0; i < outputNames.length; i++) {
|
||||
String temporaryLineComment = needComment(i) ? ";" : "";
|
||||
|
||||
String variableNameSuffix = outputNames.length > 1 ? Integer.toString(i) : "";
|
||||
|
|
Loading…
Reference in New Issue