From 12147ad7187d58cb0e58504d10d6b68ce2577393 Mon Sep 17 00:00:00 2001 From: LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com> Date: Tue, 24 May 2022 11:37:35 -0700 Subject: [PATCH] Remove `RenderObject.rotate` (#103092) --- packages/flutter/lib/src/rendering/object.dart | 18 ------------------ packages/flutter/lib/src/rendering/view.dart | 5 ----- 2 files changed, 23 deletions(-) diff --git a/packages/flutter/lib/src/rendering/object.dart b/packages/flutter/lib/src/rendering/object.dart index ffdda2de0c..6f8b1b1db0 100644 --- a/packages/flutter/lib/src/rendering/object.dart +++ b/packages/flutter/lib/src/rendering/object.dart @@ -2119,24 +2119,6 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im } } - /// Rotate this render object (not yet implemented). - void rotate({ - int? oldAngle, // 0..3 - int? newAngle, // 0..3 - Duration? time, - }) { } - - // when the parent has rotated (e.g. when the screen has been turned - // 90 degrees), immediately prior to layout() being called for the - // new dimensions, rotate() is called with the old and new angles. - // The next time paint() is called, the coordinate space will have - // been rotated N quarter-turns clockwise, where: - // N = newAngle-oldAngle - // ...but the rendering is expected to remain the same, pixel for - // pixel, on the output device. Then, the layout() method or - // equivalent will be called. - - // PAINTING /// Whether [paint] for this render object is currently running. diff --git a/packages/flutter/lib/src/rendering/view.dart b/packages/flutter/lib/src/rendering/view.dart index 16654e6fc5..12c3258cf0 100644 --- a/packages/flutter/lib/src/rendering/view.dart +++ b/packages/flutter/lib/src/rendering/view.dart @@ -169,11 +169,6 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin child!.layout(BoxConstraints.tight(_size)); } - @override - void rotate({ int? oldAngle, int? newAngle, Duration? time }) { - assert(false); // nobody tells the screen to rotate, the whole rotate() dance is started from our performResize() - } - /// Determines the set of render objects located at the given position. /// /// Returns true if the given point is contained in this render object or one