From 0e7692524e18798e08adae22b3502100d9a9ee2b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 7 Sep 2019 17:06:42 +0200 Subject: [PATCH] Remove unused function --- dnscrypt-proxy/common.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dnscrypt-proxy/common.go b/dnscrypt-proxy/common.go index 7387aa89..9784bb7f 100644 --- a/dnscrypt-proxy/common.go +++ b/dnscrypt-proxy/common.go @@ -4,11 +4,9 @@ import ( "bytes" "encoding/binary" "errors" - "fmt" "io/ioutil" "net" "os" - "runtime" "strconv" "strings" "unicode" @@ -164,15 +162,6 @@ func ExtractHostAndPort(str string, defaultPort int) (host string, port int) { return } -func MemUsage() { - var m runtime.MemStats - runtime.ReadMemStats(&m) - fmt.Printf("Alloc = %v MiB", m.Alloc/1024/1024) - fmt.Printf("\tTotalAlloc = %v MiB", m.TotalAlloc/1024/1024) - fmt.Printf("\tSys = %v MiB", m.Sys/1024/1024) - fmt.Printf("\tNumGC = %v\n", m.NumGC) -} - func ReadTextFile(filename string) (string, error) { bin, err := ioutil.ReadFile(filename) if err != nil {