Skip to content

Commit

Permalink
Merge pull request #6 from mi-hol/patch-4
Browse files Browse the repository at this point in the history
remove long obsoleted FSIO
  • Loading branch information
mi-hol authored Jun 23, 2024
2 parents e2299c5 + 1792bfc commit af93001
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public class ConfigFieldImpl implements ConfigField {
private final String tsInfo;
private final boolean isIterate;
private final ReaderStateImpl state;
private final boolean fsioVisible;
private final boolean hasAutoscale;
private final String trueName;
private final String falseName;
Expand All @@ -67,11 +66,9 @@ public ConfigFieldImpl(ReaderStateImpl state,
int[] arraySizes,
@Nullable String tsInfo,
boolean isIterate,
boolean fsioVisible,
boolean hasAutoscale,
String trueName,
String falseName) {
this.fsioVisible = fsioVisible;
this.hasAutoscale = hasAutoscale;
this.trueName = trueName == null ? "true" : trueName;
this.falseName = falseName == null ? "false" : falseName;
Expand Down Expand Up @@ -171,8 +168,6 @@ public static ConfigFieldImpl parse(ReaderStateImpl state, String line) {
String[] nameTokens = nameString.split("\\s");
String name = nameTokens[nameTokens.length - 1];

boolean isFsioVisible = Arrays.stream(nameTokens).anyMatch(s -> s.equalsIgnoreCase("fsio_visible"));

boolean hasAutoscale = false;
for (String autoscaler : nameTokens) {
if (autoscaler.equals("autoscale")) {
Expand Down Expand Up @@ -205,7 +200,7 @@ public static ConfigFieldImpl parse(ReaderStateImpl state, String line) {


ConfigFieldImpl field = new ConfigFieldImpl(state, name, comment, arraySizeAsText, type, arraySizes,
tsInfo, isIterate, isFsioVisible, hasAutoscale, null, null);
tsInfo, isIterate, hasAutoscale, null, null);
if (log.debugEnabled())
log.debug("type " + type);
if (log.debugEnabled())
Expand Down Expand Up @@ -313,11 +308,6 @@ public String getTsInfo() {
return tsInfo;
}

@Override
public boolean isFsioVisible() {
return fsioVisible;
}

@Override
public String autoscaleSpec() {
Pair<Integer, Integer> pair = autoscaleSpecPair();
Expand Down

0 comments on commit af93001

Please sign in to comment.