From 0dce90931c63fb589dbf28680a752424d88ffea9 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Sun, 12 Feb 2023 19:58:53 +0300 Subject: [PATCH] comment obsolete session code --- domain/domain.go | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/domain/domain.go b/domain/domain.go index a4ef745..79c74a8 100644 --- a/domain/domain.go +++ b/domain/domain.go @@ -2,19 +2,17 @@ package domain import ( "errors" - - "git.gregbrzezinski.com/Skirda/skirdaGoLauncher/sharedutils/skirdasession" ) type SkirdaDomain struct { DomainId string SkirdaGames - skirdasession.SkirdaSessions + // skirdasession.SkirdaSessions } -func (domain SkirdaDomain) BuildDomain(newGames []SkirdaGame, newSessions []skirdasession.SkirdaSession) { +func (domain SkirdaDomain) BuildDomain(newGames []SkirdaGame, newSessions []SkirdaSession) { domain.AddGames(newGames) - domain.AddSessions(newSessions) + // domain.AddSessions(newSessions) } type Domains []SkirdaDomain @@ -42,13 +40,13 @@ func (domains Domains) GetGames() SkirdaGames { return allGames } -func (domains Domains) GetSessions() skirdasession.SkirdaSessions { - plainSessions := skirdasession.SkirdaSessions{} - for _, domain := range domains { - plainSessions = append(plainSessions, domain.SkirdaSessions...) - } - return plainSessions -} +// func (domains Domains) GetSessions() SkirdaSessions { +// plainSessions := SkirdaSessions{} +// for _, domain := range domains { +// plainSessions = append(plainSessions, SkirdaSessions...) +// } +// return plainSessions +// } func (domains Domains) FindDomain(domainId string) (SkirdaDomain, error) { for _, domain := range domains {