From ee00918aeaf33368375b73bb425dd21e3ea202a3 Mon Sep 17 00:00:00 2001 From: thindil Date: Sun, 20 Oct 2024 03:16:13 +0000 Subject: [PATCH] refactor: removed unused code FossilOrigin-Name: c2b8e18afe9dad92e4e0f92159f3f3c3b8fa387364d5aebc284e58df8a937e76 --- bin/data/ui/trade.tcl | 72 ------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 bin/data/ui/trade.tcl diff --git a/bin/data/ui/trade.tcl b/bin/data/ui/trade.tcl deleted file mode 100644 index b08331adc..000000000 --- a/bin/data/ui/trade.tcl +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright (c) 2020-2024 Bartek thindil Jasicki -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -ttk::frame .gameframe.paned.tradeframe -set tradecanvas [canvas .gameframe.paned.tradeframe.canvas \ - -yscrollcommand [list .gameframe.paned.tradeframe.scrolly set] \ - -xscrollcommand [list .gameframe.paned.tradeframe.scrollx set]] -pack [ttk::scrollbar .gameframe.paned.tradeframe.scrolly -orient vertical \ - -command [list $tradecanvas yview]] -side right -fill y -pack $tradecanvas -side top -fill both -pack [ttk::scrollbar .gameframe.paned.tradeframe.scrollx -orient horizontal \ - -command [list $tradecanvas xview]] -fill x -SetScrollbarBindings $tradecanvas .gameframe.paned.tradeframe.scrolly -::autoscroll::autoscroll .gameframe.paned.tradeframe.scrolly -::autoscroll::autoscroll .gameframe.paned.tradeframe.scrollx -set tradeframe [ttk::frame $tradecanvas.trade] -SetScrollbarBindings $tradeframe .gameframe.paned.tradeframe.scrolly -# Type of items to show -grid [ttk::frame $tradeframe.options] -sticky w -SetScrollbarBindings $tradeframe.options .gameframe.paned.tradeframe.scrolly -grid [ttk::label $tradeframe.options.typelabel -text {Type:}] -SetScrollbarBindings $tradeframe.options.typelabel \ - .gameframe.paned.tradeframe.scrolly -grid [ttk::combobox $tradeframe.options.type -state readonly] -column 1 -row 0 -bind $tradeframe.options.type <> \ - {ShowTrade [$tradeframe.options.type get]} -grid [ttk::entry $tradeframe.options.search -validate key \ - -validatecommand {SearchTrade %P}] -column 2 -row 0 -grid [ttk::frame $tradeframe.options.playerinfo] -sticky nw -columnspan 2 -SetScrollbarBindings $tradeframe.options.playerinfo \ - .gameframe.paned.tradeframe.scrolly -grid [ttk::label $tradeframe.options.playerinfo.moneyinfo -wraplength 300] \ - -sticky w -SetScrollbarBindings $tradeframe.options.playerinfo.moneyinfo \ - .gameframe.paned.tradeframe.scrolly -ttk::label $tradeframe.options.playerinfo.moneyinfo2 -wraplength 300 \ - -style Golden.TLabel -SetScrollbarBindings $tradeframe.options.playerinfo.moneyinfo2 \ - .gameframe.paned.tradeframe.scrolly -grid [ttk::frame $tradeframe.options.playerinfo.cargoinfo] -columnspan 2 -SetScrollbarBindings $tradeframe.options.playerinfo.cargoinfo \ - .gameframe.paned.tradeframe.scrolly -grid [ttk::label $tradeframe.options.playerinfo.cargoinfo.cargoinfo -wraplength 300 -text {Free cargo space is }] \ - -sticky w -SetScrollbarBindings $tradeframe.options.playerinfo.cargoinfo.cargoinfo \ - .gameframe.paned.tradeframe.scrolly -grid [ttk::label $tradeframe.options.playerinfo.cargoinfo.cargoinfo2 -wraplength 300 \ - -style Golden.TLabel] -sticky w -row 0 -column 1 -SetScrollbarBindings $tradeframe.options.playerinfo.cargoinfo.cargoinfo2 \ - .gameframe.paned.tradeframe.scrolly -grid [ttk::frame $tradeframe.options.baseinfo] -sticky nw -column 2 -row 1 -SetScrollbarBindings $tradeframe.options.baseinfo \ - .gameframe.paned.tradeframe.scrolly -grid [ttk::label $tradeframe.options.baseinfo.baseinfo -wraplength 300] -SetScrollbarBindings $tradeframe.options.baseinfo.baseinfo \ - .gameframe.paned.tradeframe.scrolly -grid [ttk::label $tradeframe.options.baseinfo.baseinfo2 -wraplength 300 \ - -style Golden.TLabel] -sticky w -row 0 -column 1 -SetScrollbarBindings $tradeframe.options.baseinfo.baseinfo2 \ - .gameframe.paned.tradeframe.scrolly