Linting comments, remove deadcode.

This commit is contained in:
Bruce Marriner 2016-06-14 09:15:25 -05:00
parent cec33d9477
commit d1184ab1fd

View file

@ -10,8 +10,6 @@
package discordgo package discordgo
import ( import (
"bytes"
"encoding/json"
"fmt" "fmt"
"log" "log"
"runtime" "runtime"
@ -20,21 +18,19 @@ import (
const ( const (
// Critical Errors that could lead to data loss or panic // LogError level is used for critical errors that could lead to data loss
// Only errors that would not be returned to a calling function // or panic that would not be returned to a calling function.
LogError int = iota LogError int = iota
// Very abnormal events. // LogWarning level is used for very abnormal events and errors that are
// Errors that are also returend to a calling function. // also returend to a calling function.
LogWarning LogWarning
// Normal non-error activity // LogInformational level is used for normal non-error activity
// Generally, not overly spammy events
LogInformational LogInformational
// Very detailed non-error activity // LogDebug level is for very detailed non-error activity. This is
// All HTTP/Websocket packets. // very spammy and will impact performance.
// Very spammy and will impact performance
LogDebug LogDebug
) )
@ -95,6 +91,7 @@ func (v *VoiceConnection) log(msgL int, format string, a ...interface{}) {
} }
// printJSON is a helper function to display JSON data in a easy to read format. // printJSON is a helper function to display JSON data in a easy to read format.
/* NOT USED ATM
func printJSON(body []byte) { func printJSON(body []byte) {
var prettyJSON bytes.Buffer var prettyJSON bytes.Buffer
error := json.Indent(&prettyJSON, body, "", "\t") error := json.Indent(&prettyJSON, body, "", "\t")
@ -103,3 +100,4 @@ func printJSON(body []byte) {
} }
log.Println(string(prettyJSON.Bytes())) log.Println(string(prettyJSON.Bytes()))
} }
*/