1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 09:50:39 +00:00

remove the dead code

This commit is contained in:
astaxie
2015-09-17 23:47:26 +08:00
parent e665a7dd32
commit 4823a0f114
6 changed files with 5 additions and 44 deletions

View File

@ -26,12 +26,6 @@ var (
dunno = []byte("???")
centerDot = []byte("·")
dot = []byte(".")
lbr = []byte("{")
lbrn = []byte("{\n")
com = []byte(",")
comn = []byte(",\n")
rbr = []byte("}")
comnrbr = []byte(",\n}")
)
type pointerInfo struct {
@ -376,8 +370,8 @@ func printKeyValue(buf *bytes.Buffer, val reflect.Value, pointers **pointerInfo,
}
}
// dump pointer value
func printPointerInfo(buf *bytes.Buffer, headlen int, pointers *pointerInfo) {
// PrintPointerInfo dump pointer value
func PrintPointerInfo(buf *bytes.Buffer, headlen int, pointers *pointerInfo) {
var anyused = false
var pointerNum = 0
@ -444,8 +438,8 @@ func printPointerInfo(buf *bytes.Buffer, headlen int, pointers *pointerInfo) {
}
}
// get stack bytes
func stack(skip int, indent string) []byte {
// Stack get stack bytes
func Stack(skip int, indent string) []byte {
var buf = new(bytes.Buffer)
for i := skip; ; i++ {