From db64e0c9aa67f54dff3e220b8d76bc360c913396 Mon Sep 17 00:00:00 2001 From: Matthew Faltys Date: Fri, 22 Nov 2019 17:34:53 +0000 Subject: [PATCH] Remove unused code --- nethack-launcher/create_initial_files.go | 6 ------ nethack-launcher/print_change_password_screen.go | 1 - nethack-launcher/print_progress_screen.go | 1 - 3 files changed, 8 deletions(-) diff --git a/nethack-launcher/create_initial_files.go b/nethack-launcher/create_initial_files.go index 1d9a41b..9a46221 100644 --- a/nethack-launcher/create_initial_files.go +++ b/nethack-launcher/create_initial_files.go @@ -11,12 +11,6 @@ func createInitialFiles() { if _, err := os.Stat(config.NethackLauncher.HackDir); os.IsNotExist(err) { os.Mkdir(config.NethackLauncher.HackDir, os.ModeDir) } - //if _, err := os.Stat(fmt.Sprintf("%s/dumps/", config.NethackLauncher.HackDir)); os.IsNotExist(err) { - // os.Mkdir(fmt.Sprintf("%s/dumps/", config.NethackLauncher.HackDir), os.ModeDir) - //} - //if _, err := os.Stat(fmt.Sprintf("%s/save/", config.NethackLauncher.HackDir)); os.IsNotExist(err) { - // os.Mkdir(fmt.Sprintf("%s/save/", config.NethackLauncher.HackDir), os.ModeDir) - //} // move in nhdat file if it does not exist if _, err := os.Stat(fmt.Sprintf("%s/nhdat", config.NethackLauncher.HackDir)); os.IsNotExist(err) { diff --git a/nethack-launcher/print_change_password_screen.go b/nethack-launcher/print_change_password_screen.go index fb6ba94..8c5a273 100644 --- a/nethack-launcher/print_change_password_screen.go +++ b/nethack-launcher/print_change_password_screen.go @@ -58,7 +58,6 @@ func printChangePasswordScreen(redisClient *redis.Client, username string) { // back to main screen printUserScreen(redisClient, username) - //} if err := scanner.Err(); err != nil { fmt.Printf("%s\n", err) } diff --git a/nethack-launcher/print_progress_screen.go b/nethack-launcher/print_progress_screen.go index e88f3c7..783793c 100644 --- a/nethack-launcher/print_progress_screen.go +++ b/nethack-launcher/print_progress_screen.go @@ -80,7 +80,6 @@ func printProgressScreen(redisClient *redis.Client, username string) { exec.Command("stty", "-F", "/dev/tty", "echo", "-cbreak").Run() clearScreen() nh := exec.Command("ttyplay", "-p", ttyrecPath) - //nh := exec.Command("termplay", "-f", "live", ttyrecPath) nh.Stdout = os.Stdout nh.Stdin = os.Stdin nh.Stderr = os.Stderr