Skip to content

Commit

Permalink
removed long support commit which should not have been committed here
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Sep 16, 2024
1 parent 5bceacc commit 3863531
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ interface Scope<AST> extends Scoping<AST> {
IntVariable<AST> store(int value);
UIntVariable<AST> storeUInt(long value);

LongVariable<AST> store(long value);
/**
* Store a given value with a prefix name
*
Expand All @@ -259,7 +258,6 @@ interface Scope<AST> extends Scoping<AST> {
IntVariable<AST> store(String name, int value);
UIntVariable<AST> storeUInt(String name, long value);

LongVariable<AST> store(String name, long value);
<CV> ArrayVariable<AST, CV> store(String name, CV[] value);

<V > ArrayVariable<AST,V> createArray(String name,Class<? extends V> type, IntVariable<AST>...sizes ) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,6 @@ public UIntVariableFmi2Api storeUInt(long value) {

}

@Override
public FmiBuilder.LongVariable<PStm> store(long value) {
return activeScope.store(value);
}

@Override
public DoubleVariableFmi2Api store(String name, double value) {
Expand Down Expand Up @@ -195,10 +191,7 @@ public UIntVariableFmi2Api storeUInt(String name, long value) {
return activeScope.storeUInt(name, value);
}

@Override
public FmiBuilder.LongVariable<PStm> store(String name, long value) {
return activeScope.store(name,value);
}


/* @Override
public <ValType, Val extends Fmi2Builder.Value<ValType>, Var extends Fmi2Builder.Variable<PStm, Val>> Var store(String name, Var value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,7 @@ public UIntVariableFmi2Api storeUInt(long value) {
}


@Override
public LongVariableFmi2Api store(long value) {
return store(() -> builder.getNameGenerator().getName(), value);
}


@Override
public DoubleVariableFmi2Api store(String prefix, double value) {
Expand Down Expand Up @@ -314,14 +311,7 @@ public UIntVariableFmi2Api storeUInt(Supplier<String> nameProvider, long value)
newAIdentifierExp(name));
}

public LongVariableFmi2Api store(Supplier<String> nameProvider, long value) {
String name = nameProvider.get();
ALongLiteralExp initial = newALongLiteralExp(value);
PStm var = newVariable(name, newALongNumericPrimitiveType(), initial);
add(var);
return new LongVariableFmi2Api(var, this, builder.getDynamicScope(), newAIdentifierStateDesignator(newAIdentifier(name)),
newAIdentifierExp(name));
}


public StringVariableFmi2Api store(Supplier<String> nameProvider, String value) {
String name = nameProvider.get();
Expand Down

0 comments on commit 3863531

Please sign in to comment.