Quieten deadcode

This commit is contained in:
kortschak 2014-08-28 12:04:45 +09:30
parent 484bf145a8
commit 8118c8d3cc
11 changed files with 25 additions and 37 deletions

View file

@ -23,10 +23,10 @@ import (
func TestLinksTo(t *testing.T) {
qs := &store{
data: []string{1: "cool"},
iter: newFixed(),
iter: NewFixed(Identity),
}
qs.iter.(*Fixed).Add(2)
fixed := newFixed()
fixed := NewFixed(Identity)
val := qs.ValueOf("cool")
if val != 1 {
t.Fatalf("Failed to return correct value, got:%v expect:1", val)