Remove unactionable message that was appearing during test execution. (#75194)

This commit is contained in:
Ian Hickson
2021-02-02 19:26:03 -08:00
committed by GitHub
parent c12b53e073
commit b046ea6295

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'arena.dart';
import 'events.dart';
import 'recognizer.dart';
@@ -229,14 +227,6 @@ class ForcePressGestureRecognizer extends OneSequenceGestureRecognizer {
assert(_state != _ForceState.ready);
// A static pointer with changes in pressure creates PointerMoveEvent events.
if (event is PointerMoveEvent || event is PointerDownEvent) {
if (event.pressure > event.pressureMax || event.pressure < event.pressureMin) {
debugPrint(
'The reported device pressure ' + event.pressure.toString() +
' is outside of the device pressure range where: ' +
event.pressureMin.toString() + ' <= pressure <= ' + event.pressureMax.toString(),
);
}
final double pressure = interpolation(event.pressureMin, event.pressureMax, event.pressure);
assert(
(pressure >= 0.0 && pressure <= 1.0) || // Interpolated pressure must be between 1.0 and 0.0...