From 4904db304d33a6a2d7ede4d8097f31f55bc1c0c1 Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 9 Feb 2019 18:57:58 +0100 Subject: removed the shell, it's just not necessary... --- shell/structs/boundary.go | 36 ------------------------------------ shell/structs/env.go | 43 ------------------------------------------- 2 files changed, 79 deletions(-) delete mode 100644 shell/structs/boundary.go delete mode 100644 shell/structs/env.go (limited to 'shell/structs') diff --git a/shell/structs/boundary.go b/shell/structs/boundary.go deleted file mode 100644 index b49c7a2..0000000 --- a/shell/structs/boundary.go +++ /dev/null @@ -1,36 +0,0 @@ -package structs - -type Boundary struct { - // boundary box values - x int64 - y int64 - width int64 -} - -func NewBoundary(x int64, y int64, width int64) *Boundary { - return &Boundary{x: x, y: y, width: width} -} - -func (b *Boundary) Width() int64 { - return b.width -} - -func (b *Boundary) SetWidth(width int64) { - b.width = width -} - -func (b *Boundary) Y() int64 { - return b.y -} - -func (b *Boundary) SetY(y int64) { - b.y = y -} - -func (b *Boundary) X() int64 { - return b.x -} - -func (b *Boundary) SetX(x int64) { - b.x = x -} diff --git a/shell/structs/env.go b/shell/structs/env.go deleted file mode 100644 index 949460f..0000000 --- a/shell/structs/env.go +++ /dev/null @@ -1,43 +0,0 @@ -package structs - -// Env structure storing the variables used to define what stars are inserted where -type Env struct { - // general values - url string - data string - amount int64 - treeindex int64 -} - -func NewEnv(url string, data string, amount int64, treeindex int64) *Env { - return &Env{url: url, data: data, amount: amount, treeindex: treeindex} -} - -// Getters and setters -func (e *Env) Treeindex() int64 { - return e.treeindex -} -func (e *Env) SetTreeindex(treeindex int64) { - e.treeindex = treeindex -} - -func (e *Env) Amount() int64 { - return e.amount -} -func (e *Env) SetAmount(amount int64) { - e.amount = amount -} - -func (e *Env) Data() string { - return e.data -} -func (e *Env) SetData(data string) { - e.data = data -} - -func (e *Env) Url() string { - return e.url -} -func (e *Env) SetUrl(url string) { - e.url = url -} -- cgit 1.4.1