Procházet zdrojové kódy

proto: remove commented-out code (#704)

The "return 0, errOverflow" already tells that x is always zero.
If there is a mistake, this code path should be fixed,
otherwise code that is disabled does not add any value.
Iskander (Alex) Sharipov před 7 roky
rodič
revize
174d648573
1 změnil soubory, kde provedl 0 přidání a 1 odebrání
  1. 0 1
      proto/decode.go

+ 0 - 1
proto/decode.go

@@ -186,7 +186,6 @@ func (p *Buffer) DecodeVarint() (x uint64, err error) {
 	if b&0x80 == 0 {
 	if b&0x80 == 0 {
 		goto done
 		goto done
 	}
 	}
-	// x -= 0x80 << 63 // Always zero.
 
 
 	return 0, errOverflow
 	return 0, errOverflow