From 165bedb3585b36cf2049520d97ba7f8583a0a339 Mon Sep 17 00:00:00 2001 From: Alain Gilbert Date: Sun, 21 Aug 2022 19:10:56 -0700 Subject: [PATCH] remove debug code --- pkg/wrapper/ogame.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pkg/wrapper/ogame.go b/pkg/wrapper/ogame.go index fa28fde4..1bec8173 100644 --- a/pkg/wrapper/ogame.go +++ b/pkg/wrapper/ogame.go @@ -4736,22 +4736,3 @@ func (b *OGame) OfferSellMarketplace(itemID any, quantity, priceType, price, pri func (b *OGame) OfferBuyMarketplace(itemID any, quantity, priceType, price, priceRange int64, celestialID ogame.CelestialID) error { return b.WithPriority(taskRunner.Normal).OfferBuyMarketplace(itemID, quantity, priceType, price, priceRange, celestialID) } - -type IGetCoordinate interface { - GetCoordinate() ogame.Coordinate -} - -func ConvertToCoordinate(v any) (out ogame.Coordinate) { - if celestial, ok := v.(IGetCoordinate); ok { - out = celestial.GetCoordinate() - } else if coord, ok := v.(ogame.Coordinate); ok { - out = coord - } else if coordStr, ok := v.(string); ok { - coord, err := ogame.ParseCoord(coordStr) - if err != nil { - return - } - out = coord - } - return -}