From 06b965d2aaee83d23d8d61e2f45e1eaa3f6656a0 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Sun, 25 Oct 2020 20:57:57 +0000 Subject: [PATCH] cleaning up --- effect.go | 5 ----- main.go | 8 ++++---- room.go | 8 -------- server.go | 1 - 4 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 effect.go delete mode 100644 room.go diff --git a/effect.go b/effect.go deleted file mode 100644 index 50d1088..0000000 --- a/effect.go +++ /dev/null @@ -1,5 +0,0 @@ -package main - -type effect interface { - apply(*room) -} diff --git a/main.go b/main.go index b60eab1..5248a1c 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( ) func newLog(path string) *blammo.Log { - f, err := os.OpenFile("./belt.log", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644) + f, err := os.OpenFile("./astro.log", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644) if err != nil { exit.WithMessage(1, "unable to open log file %q for writing: %v", err) } @@ -22,7 +22,7 @@ func newLog(path string) *blammo.Log { blammo.ErrorWriter(w), } - return blammo.NewLog("belt", options...) + return blammo.NewLog("astro", options...) } func main() { @@ -43,7 +43,7 @@ func main() { blammo.ErrorWriter(stderr), } - log := blammo.NewLog("belt", options...).Child("server") + log := blammo.NewLog("astro", options...).Child("server") s := server{Log: log, host: "127.0.0.1", port: 12805} err := s.listen() log.Error("listen error: %v", err) @@ -54,7 +54,7 @@ func main() { } func runClient() { - log := newLog("./belt.log").Child("client") + log := newLog("./astro.log").Child("client") start := time.Now() log.Info("starting at: %v", start) diff --git a/room.go b/room.go deleted file mode 100644 index 9ef509a..0000000 --- a/room.go +++ /dev/null @@ -1,8 +0,0 @@ -package main - -// room represents a rectangular space in the world state -type room struct { - name string - width int - height int -} diff --git a/server.go b/server.go index 6965266..8a6f03e 100644 --- a/server.go +++ b/server.go @@ -16,7 +16,6 @@ type server struct { *blammo.Log host string port int - world *room lastSessionID int }