소스 검색

Remove commented code

V2Ray 10 년 전
부모
커밋
472cf7f523
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      common/alloc/buffer.go

+ 0 - 3
common/alloc/buffer.go

@@ -1,7 +1,6 @@
 package alloc
 
 import (
-	//"fmt"
 	"time"
 )
 
@@ -55,7 +54,6 @@ func newBufferPool(allocator func(*bufferPool) *Buffer, elements2Keep, size int)
 }
 
 func (p *bufferPool) allocate() *Buffer {
-	//fmt.Printf("Pool size: %d\n", len(p.chain))
 	var b *Buffer
 	select {
 	case b = <-p.chain:
@@ -71,7 +69,6 @@ func (p *bufferPool) free(buffer *Buffer) {
 	case p.chain <- buffer:
 	default:
 	}
-	//fmt.Printf("Pool size: %d\n", len(p.chain))
 }
 
 func (p *bufferPool) cleanup(tick <-chan time.Time) {