Remove debug infomation

This commit is contained in:
V2Ray committed 2015-09-14 00:30:50 +02:00
1 parent d12737b3b8
commit 919fd5b16b
2 files changed
+3 -6

No files matched your search

-2
View File
@@ -25,7 +25,6 @@ func NewCryptionReader(stream cipher.Stream, reader io.Reader) *CryptionReader {
// a multiply of BlockSize()
func (reader CryptionReader) Read(blocks []byte) (int, error) {
nBytes, err := reader.reader.Read(blocks)
log.Debug("CryptionReader: Read %d bytes", nBytes)
if nBytes > 0 {
reader.stream.XORKeyStream(blocks[:nBytes], blocks[:nBytes])
}
@@ -52,7 +51,6 @@ func NewCryptionWriter(stream cipher.Stream, writer io.Writer) *CryptionWriter {
// Write writes the give blocks to underlying writer. The length of the blocks
// must be a multiply of BlockSize()
func (writer CryptionWriter) Write(blocks []byte) (int, error) {
log.Debug("CryptionWriter writing %d bytes", len(blocks))
writer.stream.XORKeyStream(blocks, blocks)
return writer.writer.Write(blocks)
}