Skip to content

Commit c5d69a6

Browse files
committed
Cleanup prelude
1 parent 83b9ac1 commit c5d69a6

File tree

2 files changed

+6
-23
lines changed

2 files changed

+6
-23
lines changed

RELEASES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release Notes
22

3+
## Unreleased
4+
5+
### Removed
6+
7+
- `layout_flexbox()` has been removed from the prelude. Use `FlexboxAlgorithm::perform_layout()` instead.
8+
39
## 0.3.11
410

511
### Fixes

src/prelude.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
//! Commonly used types
22
3-
use crate::compute::LayoutAlgorithm;
4-
use crate::layout::{SizeAndBaselines, SizingMode};
5-
6-
/// Apply the flexbox algorithm and recursively layout the specified node
7-
#[inline(always)]
8-
pub fn layout_flexbox(
9-
tree: &mut impl LayoutTree,
10-
node: Node,
11-
known_dimensions: Size<Option<f32>>,
12-
parent_size: Size<Option<f32>>,
13-
available_space: Size<AvailableSpace>,
14-
sizing_mode: SizingMode,
15-
) -> SizeAndBaselines {
16-
crate::compute::flexbox::FlexboxAlgorithm::perform_layout(
17-
tree,
18-
node,
19-
known_dimensions,
20-
parent_size,
21-
available_space,
22-
sizing_mode,
23-
)
24-
}
25-
263
pub use crate::{
274
geometry::{Line, Rect, Size},
285
layout::Layout,

0 commit comments

Comments
 (0)