mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-04 01:19:46 +01:00
Remove unused function
This commit is contained in:
parent
3e10fc917f
commit
0e7692524e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user