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
|
# 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
|
@ -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;
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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();
|
||||||
|
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user