Remove unnecessary breaks in default clauses of switch statements (flutter/engine#54669)

See https://dart.googlesource.com/sdk.git/+/045d26bc74209f5acc6466669f89686344e83de2
This commit is contained in:
Jason Simmons 2024-08-20 21:31:26 -07:00 committed by GitHub
parent bc6d7fa164
commit 164eb442db
3 changed files with 0 additions and 3 deletions

View File

@ -1104,7 +1104,6 @@ class BrowserManager {
default: default:
// Unreachable. // Unreachable.
assert(false); assert(false);
break;
} }
} }

View File

@ -823,7 +823,6 @@ class BitmapCanvas extends EngineCanvas {
..backgroundBlendMode = ..backgroundBlendMode =
blendModeToCssMixBlendMode(colorFilterBlendMode) ?? '' blendModeToCssMixBlendMode(colorFilterBlendMode) ?? ''
..backgroundColor = filterColor!.toCssString(); ..backgroundColor = filterColor!.toCssString();
break;
} }
return imgElement; return imgElement;
} }

View File

@ -77,7 +77,6 @@ class TextCapitalizationConfig {
case TextCapitalization.none: case TextCapitalization.none:
default: default:
autocapitalize = 'off'; autocapitalize = 'off';
break;
} }
if (domInstanceOfString(domElement, 'HTMLInputElement')) { if (domInstanceOfString(domElement, 'HTMLInputElement')) {
final DomHTMLInputElement element = domElement as DomHTMLInputElement; final DomHTMLInputElement element = domElement as DomHTMLInputElement;