Un-allow and fix warnings in components/layout_2020

This commit is contained in:
Simon Sapin 2019-12-02 16:25:08 +01:00
parent 6cd42bdcfb
commit aa925a5984
13 changed files with 15 additions and 73 deletions

View file

@ -141,17 +141,6 @@ impl flow_relative::Vec2<Length> {
}
}
impl flow_relative::Sides<Length> {
pub fn zero() -> Self {
Self {
inline_start: Length::zero(),
inline_end: Length::zero(),
block_start: Length::zero(),
block_end: Length::zero(),
}
}
}
impl flow_relative::Rect<Length> {
pub fn zero() -> Self {
Self {
@ -244,16 +233,6 @@ impl<T> flow_relative::Sides<T> {
{
self.block_start + self.block_end
}
pub fn start_corner(&self) -> flow_relative::Vec2<T>
where
T: Clone,
{
flow_relative::Vec2 {
inline: self.inline_start.clone(),
block: self.block_start.clone(),
}
}
}
impl flow_relative::Sides<LengthPercentage> {