Browse Source

Removed unused func

Bruce Marriner 8 years ago
parent
commit
6c4d9f0ad7
1 changed files with 0 additions and 20 deletions
  1. 0 20
      discord_test.go

+ 0 - 20
discord_test.go

@@ -52,26 +52,6 @@ func waitBoolEqual(timeout time.Duration, check *bool, want bool) bool {
 	}
 }
 
-// Checks if we're connected to Discord
-func isConnected() bool {
-
-	if dg == nil {
-		return false
-	}
-
-	if dg.Token == "" {
-		return false
-	}
-
-	// Need a way to see if the ws connection is nil
-
-	if !waitBoolEqual(10*time.Second, &dg.DataReady, true) {
-		return false
-	}
-
-	return true
-}
-
 //////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////// START OF TESTS