File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ pub trait AreaModel {
2626}
2727
2828impl AreaModel for Area {
29- #[ inline( always) ]
3029 fn without_gaps ( self , gaps : & Gaps ) -> Area {
3130 let origin = self . origin ;
3231 let size = self . size ;
@@ -39,13 +38,11 @@ impl AreaModel for Area {
3938 )
4039 }
4140
42- #[ inline( always) ]
4341 fn move_with_offsets ( & mut self , offset_x : & Length , offset_y : & Length ) {
4442 self . origin . x += offset_x. get ( ) ;
4543 self . origin . y += offset_y. get ( ) ;
4644 }
4745
48- #[ inline( always) ]
4946 fn adjust_size ( & mut self , node : & Node ) {
5047 if let Size :: InnerPercentage ( p) = node. width {
5148 self . size . width *= p. get ( ) / 100. ;
@@ -68,7 +65,6 @@ pub enum AlignAxis {
6865}
6966
7067impl AlignAxis {
71- #[ inline( always) ]
7268 pub fn new ( direction : & DirectionMode , alignment_direction : AlignmentDirection ) -> Self {
7369 match direction {
7470 DirectionMode :: Vertical => match alignment_direction {
@@ -89,7 +85,6 @@ pub trait SizeModel {
8985}
9086
9187impl SizeModel for Size2D {
92- #[ inline( always) ]
9388 fn with_gaps ( self , gap : & Gaps ) -> Size2D {
9489 Size2D :: new ( self . width + gap. horizontal ( ) , self . height + gap. vertical ( ) )
9590 }
Original file line number Diff line number Diff line change @@ -27,15 +27,13 @@ impl Default for Size {
2727}
2828
2929impl Size {
30- #[ inline]
3130 pub fn inner_sized ( & self ) -> bool {
3231 matches ! (
3332 self ,
3433 Self :: Inner | Self :: FillMinimum | Self :: InnerPercentage ( _)
3534 )
3635 }
3736
38- #[ inline]
3937 pub fn inner_percentage_sized ( & self ) -> bool {
4038 matches ! ( self , Self :: InnerPercentage ( _) )
4139 }
@@ -144,7 +142,6 @@ impl Size {
144142 final_value
145143 }
146144
147- #[ inline]
148145 pub fn most_fitting_size < ' a > ( & self , size : & ' a f32 , available_size : & ' a f32 ) -> & ' a f32 {
149146 match self {
150147 Self :: Inner | Self :: InnerPercentage ( _) => available_size,
You can’t perform that action at this time.
0 commit comments