drop an unnecessary level of indent

This commit is contained in:
Kartik K. Agaram 2022-07-20 07:02:45 -07:00
parent 39f71784c9
commit 7dc47edde8
1 changed files with 21 additions and 23 deletions

View File

@ -96,7 +96,6 @@ function Text.compute_fragments(State, line_index)
local frag_text = App.newText(love.graphics.getFont(), frag)
local frag_width = App.width(frag_text)
--? print('x: '..tostring(x)..'; '..tostring(State.right-x)..'px to go')
if x + frag_width > State.right then
while x + frag_width > State.right do
--? print(('checking whether to split fragment ^%s$ of width %d when rendering from %d'):format(frag, frag_width, x))
if x < 0.8*State.right then
@ -120,7 +119,6 @@ function Text.compute_fragments(State, line_index)
end
x = State.left -- new line
end
end
if #frag > 0 then
--? print('inserting ^'..frag..'$ of width '..tostring(frag_width)..'px')
table.insert(line_cache.fragments, {data=frag, text=frag_text})