Skip to content

Commit c3b8fc5

Browse files
authored
Cleanup prelude (#415)
1 parent 0bccf6c commit c3b8fc5

File tree

2 files changed

+4
-27
lines changed

2 files changed

+4
-27
lines changed

RELEASES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Removed
6+
7+
- `layout_flexbox()` has been removed from the prelude. Use `FlexboxAlgorithm::perform_layout()` instead.
8+
59
### Changes
610

711
- The Flexbox algorithm has now been moved behind the `flexbox` feature. The `flexbox` feature is enabled by default.

src/prelude.rs

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

0 commit comments

Comments
 (0)