1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 10:59:01 +00:00

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 # Warning, "version" should be the same in gradle.properties and Version.java
# Any idea anyone how to magically synchronize those :-) ? # Any idea anyone how to magically synchronize those :-) ?
version = 1.2024.3 version = 1.2024.4beta1
org.gradle.workers.max = 3 org.gradle.workers.max = 3

View File

@ -49,9 +49,6 @@ public interface TFunction {
public TFunctionType getFunctionType(); 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, public TValue executeReturnFunction(TContext context, TMemory memory, LineLocation location, List<TValue> args,
Map<String, TValue> named) throws EaterException, EaterExceptionLocated; 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) @Override
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);
}
public void executeProcedureInternal(TContext context, TMemory memory, List<TValue> args, Map<String, TValue> named) public void executeProcedureInternal(TContext context, TMemory memory, List<TValue> args, Map<String, TValue> named)
throws EaterException, EaterExceptionLocated { throws EaterException, EaterExceptionLocated {
if (functionType != TFunctionType.PROCEDURE && functionType != TFunctionType.LEGACY_DEFINELONG) if (functionType != TFunctionType.PROCEDURE && functionType != TFunctionType.LEGACY_DEFINELONG)

View File

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

View File

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

View File

@ -46,7 +46,7 @@ public class Version {
// Warning, "version" should be the same in gradle.properties and Version.java // Warning, "version" should be the same in gradle.properties and Version.java
// Any idea anyone how to magically synchronize those :-) ? // 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() { public static String versionString() {
return version; return version;