From 30364aa2b068d23c962d8b51583b01a171ede1ff Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Wed, 14 Oct 2015 19:26:46 -0600 Subject: [PATCH] Remove dead code --- cmd/influx_inspect/info.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/influx_inspect/info.go b/cmd/influx_inspect/info.go index b711f81300..83f7b988ec 100644 --- a/cmd/influx_inspect/info.go +++ b/cmd/influx_inspect/info.go @@ -31,9 +31,8 @@ func cmdInfo(path string) { } // Summary stats - fmt.Printf("Shards: %d, Indexes: %d, Databases: %d, Disk Size: %d, Series: %d\n", + fmt.Printf("Shards: %d, Indexes: %d, Databases: %d, Disk Size: %d, Series: %d\n\n", tstore.ShardN(), tstore.DatabaseIndexN(), len(tstore.Databases()), size, countSeries(tstore)) - fmt.Println() tw := tabwriter.NewWriter(os.Stdout, 16, 8, 0, '\t', 0) @@ -63,10 +62,6 @@ func cmdInfo(path string) { // Sample a point from each measurement to determine the field types for _, shardID := range shardIDs { shard := tstore.Shard(shardID) - if err != nil { - fmt.Printf("Failed to get transaction: %v", err) - } - codec := shard.FieldCodec(m.Name) for _, field := range codec.Fields() { ft := fmt.Sprintf("%s:%s", field.Name, field.Type)