1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2025-01-06 01:37:12 +01:00

Remove unused function

This commit is contained in:
Frank Denis 2019-09-07 17:06:42 +02:00
parent 3e10fc917f
commit 0e7692524e

View File

@ -4,11 +4,9 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"errors" "errors"
"fmt"
"io/ioutil" "io/ioutil"
"net" "net"
"os" "os"
"runtime"
"strconv" "strconv"
"strings" "strings"
"unicode" "unicode"
@ -164,15 +162,6 @@ func ExtractHostAndPort(str string, defaultPort int) (host string, port int) {
return 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) { func ReadTextFile(filename string) (string, error) {
bin, err := ioutil.ReadFile(filename) bin, err := ioutil.ReadFile(filename)
if err != nil { if err != nil {