Skip to content

Commit

Permalink
remove single-thread check (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
sberkun committed May 25, 2024
1 parent d87e426 commit 2de8269
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ protected PlatformOptions fromString(String string, MessageReporter reporter) {
public void validate(TargetConfig config, MessageReporter reporter) {
var platform = config.get(PlatformProperty.INSTANCE).platform;
switch (platform) {
case RP2040:
validateRP2040(config, reporter);
break;
case FLEXPRET:
validateFlexPRET(config, reporter);
break;
Expand All @@ -129,15 +126,6 @@ public void validate(TargetConfig config, MessageReporter reporter) {
}
}

private void validateRP2040(TargetConfig config, MessageReporter reporter) {
var singleThreaded = config.get(SingleThreadedProperty.INSTANCE);
if (!singleThreaded) {
reporter
.at(config.lookup(this), Literals.KEY_VALUE_PAIR__VALUE)
.error("Platform " + Platform.RP2040 + " does not support threading.");
}
}

private void validateFlexPRET(TargetConfig config, MessageReporter reporter) {
var platform = config.get(PlatformProperty.INSTANCE);
var board = platform.board();
Expand Down

0 comments on commit 2de8269

Please sign in to comment.