Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Aug 22, 2022
1 parent 1b51ef5 commit 165bedb
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pkg/wrapper/ogame.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 165bedb

Please sign in to comment.