From 80608e070dd16636780b40a8061ae6ec41e9b1f7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 26 May 2019 14:12:38 -0700 Subject: [PATCH] remove old test code Signed-off-by: Jeff Carr --- gui.go | 2 +- mainCloudBox.go | 2 -- structs.go | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/gui.go b/gui.go index 7b3a3fa..0b52ec5 100644 --- a/gui.go +++ b/gui.go @@ -194,7 +194,7 @@ func CreateButton(a *pb.Account, vm *pb.Event_VM, newmap.VM = vm newmap.Action = action newmap.custom = custom - newmap.aTab = Data.CurrentTab +// newmap.aTab = Data.CurrentTab Data.AllButtons = append(Data.AllButtons, newmap) return newB diff --git a/mainCloudBox.go b/mainCloudBox.go index 784890f..8109c96 100644 --- a/mainCloudBox.go +++ b/mainCloudBox.go @@ -178,7 +178,6 @@ func ShowAccountTab() { // Create the things for the Account Tab var aTab GuiTabStructure - Data.CurrentTab = &aTab AddAccountBox(&aTab) // Set the parents and data structure links @@ -186,7 +185,6 @@ func ShowAccountTab() { aTab.parentWindow = Data.cloudWindow aTab.tabOffset = 0 -// Data.smallBox = aTab.firstBox Data.cloudTab.InsertAt("Add Account", 0, aTab.firstBox) Data.cloudTab.SetMargined(0, true) } diff --git a/structs.go b/structs.go index 643c1de..1420989 100644 --- a/structs.go +++ b/structs.go @@ -59,7 +59,6 @@ type GuiDataStructure struct { // account entry textboxes Config *pb.Config - Current *pb.Account // A map of all buttons everywhere on all // windows, all tabs, across all goroutines @@ -67,7 +66,6 @@ type GuiDataStructure struct { AllButtons []ButtonMap // a tab (maybe the one the user is playing with?) - CurrentTab *GuiTabStructure // a VM (maybe the one the user is playing with?) CurrentVM *pb.Event_VM @@ -105,7 +103,6 @@ type ButtonMap struct { Account *pb.Account VM *pb.Event_VM Action string // what type of button - aTab *GuiTabStructure custom func (*ButtonMap) }