Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f9385e7

Browse files
authored
Remove unused field initializing formal parameters. (#30822)
1 parent 1fab2fb commit f9385e7

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

lib/web_ui/lib/src/engine/html/path/path_metrics.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,13 @@ class SurfacePathMetrics extends IterableBase<ui.PathMetric>
4444

4545
/// Maintains a single instance of computed segments for set of PathMetric
4646
/// objects exposed through iterator.
47-
///
48-
/// [resScale] controls the precision of measure when values > 1.
4947
class _SurfacePathMeasure {
50-
_SurfacePathMeasure(this._path, this.forceClosed, {this.resScale = 1.0})
48+
_SurfacePathMeasure(this._path, this.forceClosed)
5149
:
5250
// nextContour will increment this to the zero based index.
5351
_currentContourIndex = -1,
5452
_pathIterator = PathIterator(_path, forceClosed);
5553

56-
final double resScale;
5754
final PathRef _path;
5855
PathIterator _pathIterator;
5956
final List<_PathContourMeasure> _contours = <_PathContourMeasure>[];

lib/web_ui/lib/src/ui/window.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,11 @@ class IsolateNameServer {
252252
SingletonFlutterWindow get window => engine.window;
253253

254254
class FrameData {
255-
const FrameData._({this.frameNumber = -1});
255+
const FrameData._();
256256

257-
const FrameData.webOnly() : frameNumber = -1;
257+
const FrameData.webOnly();
258258

259-
final int frameNumber;
259+
int get frameNumber => -1;
260260
}
261261

262262
class GestureSettings {

0 commit comments

Comments
 (0)