refactor: remove dead code

This commit is contained in:
Arnaud Roques 2024-02-16 20:20:56 +01:00
parent 99698d97bb
commit 04f718781f
6 changed files with 5 additions and 27 deletions

View File

@ -1,4 +1,4 @@
# Warning, "version" should be the same in gradle.properties and Version.java
# Any idea anyone how to magically synchronize those :-) ?
version = 1.2024.3
version = 1.2024.4beta1
org.gradle.workers.max = 3

View File

@ -49,9 +49,6 @@ public interface TFunction {
public TFunctionType getFunctionType();
public void executeProcedure(TContext context, TMemory memory, LineLocation location, String s)
throws EaterException, EaterExceptionLocated;
public TValue executeReturnFunction(TContext context, TMemory memory, LineLocation location, List<TValue> args,
Map<String, TValue> named) throws EaterException, EaterExceptionLocated;

View File

@ -130,18 +130,7 @@ public class TFunctionImpl implements TFunction {
}
}
public void executeProcedure(TContext context, TMemory memory, LineLocation location, String s)
throws EaterException, EaterExceptionLocated {
final EaterFunctionCall call = new EaterFunctionCall(new StringLocated(s, location),
context.isLegacyDefine(signature.getFunctionName()), unquoted);
call.analyze(context, memory);
final String endOfLine = call.getEndOfLine();
final List<TValue> args = call.getValues();
final Map<String, TValue> named = call.getNamedArguments();
executeProcedureInternal(context, memory, args, named);
context.appendEndOfLine(endOfLine);
}
@Override
public void executeProcedureInternal(TContext context, TMemory memory, List<TValue> args, Map<String, TValue> named)
throws EaterException, EaterExceptionLocated {
if (functionType != TFunctionType.PROCEDURE && functionType != TFunctionType.LEGACY_DEFINELONG)

View File

@ -62,11 +62,7 @@ public class InvokeProcedure implements TFunction {
return TFunctionType.PROCEDURE;
}
public void executeProcedure(TContext context, TMemory memory, LineLocation location, String s)
throws EaterException, EaterExceptionLocated {
throw new UnsupportedOperationException();
}
@Override
public void executeProcedureInternal(TContext context, TMemory memory, List<TValue> args, Map<String, TValue> named)
throws EaterException, EaterExceptionLocated {
final String fname = args.get(0).toString();

View File

@ -51,11 +51,7 @@ public abstract class SimpleReturnFunction implements TFunction {
return TFunctionType.RETURN_FUNCTION;
}
final public void executeProcedure(TContext context, TMemory memory, LineLocation location, String s)
throws EaterException {
throw new UnsupportedOperationException();
}
@Override
final public void executeProcedureInternal(TContext context, TMemory memory, List<TValue> args,
Map<String, TValue> named) throws EaterException {
throw new UnsupportedOperationException();

View File

@ -46,7 +46,7 @@ public class Version {
// Warning, "version" should be the same in gradle.properties and Version.java
// Any idea anyone how to magically synchronize those :-) ?
private static final String version = "1.2024.3";
private static final String version = "1.2024.4beta1";
public static String versionString() {
return version;