~jaro/balkon

150e9e43b8b854092d77cbbe2ad45afa42512074 — Jaro 1 year, 5 months ago 23c52ba
Remove unused alignment function.
1 files changed, 0 insertions(+), 6 deletions(-)

M src/Data/Text/ParagraphLayout/Internal/VerticalOffsets.hs
M src/Data/Text/ParagraphLayout/Internal/VerticalOffsets.hs => src/Data/Text/ParagraphLayout/Internal/VerticalOffsets.hs +0 -6
@@ 1,7 1,6 @@
module Data.Text.ParagraphLayout.Internal.VerticalOffsets
    ( VerticalOffsets (..)
    , alignBaseline
    , alignLayoutTop
    , shift
    )
where


@@ 42,11 41,6 @@ shift d vo = vo
    , layoutBottom = layoutBottom vo + d
    }

-- | Set `layoutTop` to the given value and update all other coordinates
-- so that distances are preserved.
alignLayoutTop :: Int32 -> VerticalOffsets -> VerticalOffsets
alignLayoutTop x vo = shift (x - layoutTop vo) vo

-- | Set `baseline` to the given value and update all other coordinates
-- so that distances are preserved.
alignBaseline :: Int32 -> VerticalOffsets -> VerticalOffsets