mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
fix "declared and not used" errors in non-test code.
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
This commit is contained in:
parent
b198b994a1
commit
28eba4877b
35 changed files with 35 additions and 73 deletions
|
|
@ -93,7 +93,6 @@ func verifyInt(i int64, t *testing.T) {
|
|||
|
||||
// Test basic encode/decode routines for signed integers
|
||||
func TestIntCodec(t *testing.T) {
|
||||
var b = new(bytes.Buffer);
|
||||
for u := uint64(0); ; u = (u+1) * 7 {
|
||||
// Do positive and negative values
|
||||
i := int64(u);
|
||||
|
|
@ -191,9 +190,6 @@ func TestScalarEncInstructions(t *testing.T) {
|
|||
// int16
|
||||
{
|
||||
b.Reset();
|
||||
v := int16(17);
|
||||
pv := &v;
|
||||
ppv := &pv;
|
||||
data := struct { a int16 } { 17 };
|
||||
instr := &encInstr{ encInt16, 6, 0, 0 };
|
||||
state := newencoderState(b);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue