20
0

remove unnecessary log output

This commit is contained in:
Liu Ming 2015-10-30 16:03:44 +08:00
parent ddee605f8f
commit 6130495e06
2 changed files with 0 additions and 6 deletions

View File

@ -4,7 +4,6 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"io" "io"
"log"
"unicode/utf16" "unicode/utf16"
) )
@ -136,7 +135,6 @@ func (wb *WorkBook) parseBof(buf io.ReadSeeker, b *bof, pre *bof, offset_pre int
binary.Read(buf_item, binary.LittleEndian, &f.Head) binary.Read(buf_item, binary.LittleEndian, &f.Head)
f.str = wb.get_string(buf_item, f.Head.Size) f.str = wb.get_string(buf_item, f.Head.Size)
wb.addFormat(f) wb.addFormat(f)
log.Println(f.Head.Index, f.str)
} }
return return
} }

View File

@ -4,7 +4,6 @@ import (
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"io" "io"
"log"
"unicode/utf16" "unicode/utf16"
) )
@ -126,7 +125,6 @@ func (w *WorkSheet) parseBof(buf io.ReadSeeker, b *bof, pre *bof) *bof {
buf.Seek(2, 1) buf.Seek(2, 1)
hy.ExtendedFilePath = b.utf16String(buf, count/2+1) hy.ExtendedFilePath = b.utf16String(buf, count/2+1)
} }
log.Println(hy)
} }
} }
if flag&0x8 != 0 { if flag&0x8 != 0 {
@ -139,10 +137,8 @@ func (w *WorkSheet) parseBof(buf io.ReadSeeker, b *bof, pre *bof) *bof {
w.addRange(&hy.CellRange, &hy) w.addRange(&hy.CellRange, &hy)
case 0x809: case 0x809:
log.Println("sheet start")
buf.Seek(int64(b.Size), 1) buf.Seek(int64(b.Size), 1)
case 0xa: case 0xa:
log.Println("sheet end")
default: default:
// log.Printf("Unknow %X,%d\n", b.Id, b.Size) // log.Printf("Unknow %X,%d\n", b.Id, b.Size)
buf.Seek(int64(b.Size), 1) buf.Seek(int64(b.Size), 1)