Browse Source

Remove unused code

master
Matthew Faltys 5 years ago
parent
commit
db64e0c9aa
  1. 6
      nethack-launcher/create_initial_files.go
  2. 1
      nethack-launcher/print_change_password_screen.go
  3. 1
      nethack-launcher/print_progress_screen.go

6
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) {

1
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)
}

1
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

Loading…
Cancel
Save