Bladeren bron

remove unused constants

Chris Bannister 10 jaren geleden
bovenliggende
commit
c3feee8348
2 gewijzigde bestanden met toevoegingen van 0 en 23 verwijderingen
  1. 0 6
      conn.go
  2. 0 17
      frame.go

+ 0 - 6
conn.go

@@ -18,12 +18,6 @@ import (
 	"time"
 )
 
-const (
-	defaultFrameSize = 4096
-	flagResponse     = 0x80
-	maskVersion      = 0x7F
-)
-
 //JoinHostPort is a utility to return a address string that can be used
 //gocql.Conn to form a connection with a host.
 func JoinHostPort(addr string, port int) string {

+ 0 - 17
frame.go

@@ -18,9 +18,6 @@ const (
 	protoVersion1      = 0x01
 	protoVersion2      = 0x02
 	protoVersion3      = 0x03
-
-	protoVersionRequest  = 0x00
-	protoVersionResponse = 0x80
 )
 
 type protoVersion byte
@@ -1318,17 +1315,3 @@ func (f *framer) writeStringMap(m map[string]string) {
 		f.writeString(v)
 	}
 }
-
-var consistencyCodes = []uint16{
-	Any:         0x0000,
-	One:         0x0001,
-	Two:         0x0002,
-	Three:       0x0003,
-	Quorum:      0x0004,
-	All:         0x0005,
-	LocalQuorum: 0x0006,
-	EachQuorum:  0x0007,
-	Serial:      0x0008,
-	LocalSerial: 0x0009,
-	LocalOne:    0x000A,
-}