aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/ScrollRenderObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/render/ScrollRenderObject.cpp')
-rw-r--r--src/ui/render/ScrollRenderObject.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ui/render/ScrollRenderObject.cpp b/src/ui/render/ScrollRenderObject.cpp
index 49cb6bf3..d3e00db1 100644
--- a/src/ui/render/ScrollRenderObject.cpp
+++ b/src/ui/render/ScrollRenderObject.cpp
@@ -189,13 +189,6 @@ Size ScrollRenderObject::OnMeasureContent(const MeasureRequirement& requirement,
}
}
-Size ScrollRenderObject::OnMeasureContent1(const BoxConstraint& constraint) {
- auto child = GetChild();
- if (child == nullptr) return constraint.min;
- auto child_size = child->Measure1(BoxConstraint::kNotLimit);
- return constraint.Coerce(child_size);
-}
-
void ScrollRenderObject::OnLayoutContent(const Rect& content_rect) {
if (auto child = GetChild()) {
child->Layout(content_rect.GetLeftTop() - GetScrollOffset());