Skip to content

Commit d4712b8

Browse files
committed
remove useless cruft
this delta removes two inline comments which uselessly documented a function parameter. minimal testing -- one minute total to test the four ways that stockpiles can be selected.
1 parent 0e1fb12 commit d4712b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

combine.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ local function get_stockpile_here()
740740
-- try finding the stockpile by viewed item or first item in itemlist viewsheet.
741741
if building == nil then
742742
local item = nil
743-
if dfhack.gui.getSelectedItem(--[[silent]]true) ~= nil then
744-
item = dfhack.gui.getSelectedItem(--[[silent]]true)
743+
if dfhack.gui.getSelectedItem(true) ~= nil then
744+
item = dfhack.gui.getSelectedItem(true)
745745
elseif tonumber(dfhack.DF_VERSION:match("^0*%.*(%d+%.%d+)")) >= 50.07 -- matchFocusString() in Commit a770a4c
746746
and dfhack.gui.matchFocusString("dwarfmode/ViewSheets/ITEM_LIST", dfhack.gui.getDFViewscreen())
747747
and df.global.game.main_interface.view_sheets.open == true

0 commit comments

Comments
 (0)