Просмотр исходного кода

proto: remove some dead code

Change-Id: Iee170bcc8b2f26c0d4fd2d0b2f839671d9d37576
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/167460
Reviewed-by: Herbie Ong <herbie@google.com>
Joe Tsai 7 лет назад
Родитель
Сommit
2c2f4d6105
1 измененных файлов с 0 добавлено и 9 удалено
  1. 0 9
      proto/properties.go

+ 0 - 9
proto/properties.go

@@ -18,8 +18,6 @@ import (
 	"sync"
 )
 
-const debug bool = false
-
 // Constants that identify the encoding of a value on the wire.
 const (
 	WireVarint     = 0
@@ -351,13 +349,6 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {
 		}
 		prop.Prop[i] = p
 		prop.order[i] = i
-		if debug {
-			print(i, " ", f.Name, " ", t.String(), " ")
-			if p.Tag > 0 {
-				print(p.String())
-			}
-			print("\n")
-		}
 	}
 
 	// Re-order prop.order.