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:
parent
99698d97bb
commit
04f718781f
@ -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
|
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user