Skip to content

Commit

Permalink
remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Feb 20, 2024
1 parent 9dc938c commit f011ca7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
4 changes: 1 addition & 3 deletions plugins/lua/sort.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,6 @@ function do_squad_filter(unit)
end

OVERLAY_WIDGETS = {
-- TODO: rewrite for 50.12
squad_annotation=SquadAnnotationOverlay,
squad_filter=SquadFilterOverlay,
info=require('plugins.sort.info').InfoOverlay,
Expand All @@ -1293,8 +1292,7 @@ OVERLAY_WIDGETS = {
interrogation=require('plugins.sort.info').InterrogationOverlay,
conviction=require('plugins.sort.info').ConvictionOverlay,
location_selector=require('plugins.sort.locationselector').LocationSelectorOverlay,
-- unit_selector=require('plugins.sort.unitselector').UnitSelectorOverlay,
-- worker_assignment=require('plugins.sort.unitselector').WorkerAssignmentOverlay,
-- TODO: maybe rewrite for 50.12
-- burrow_assignment=require('plugins.sort.unitselector').BurrowAssignmentOverlay,
slab=require('plugins.sort.slab').SlabOverlay,
world=require('plugins.sort.world').WorldOverlay,
Expand Down
12 changes: 0 additions & 12 deletions plugins/lua/sort/unitselector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ function UnitSelectorOverlay:onInput(keys)
end
end

-- -----------------------
-- WorkerAssignmentOverlay
--

WorkerAssignmentOverlay = defclass(WorkerAssignmentOverlay, UnitSelectorOverlay)
WorkerAssignmentOverlay.ATTRS{
default_pos={x=6, y=6},
viewscreens='dwarfmode/UnitSelector',
frame={w=31, h=1},
handled_screens={WORKER_ASSIGNMENT='selected'},
}

-- -----------------------
-- BurrowAssignmentOverlay
--
Expand Down

0 comments on commit f011ca7

Please sign in to comment.