Remove commented out code

This commit is contained in:
Ryan Cavicchioni 2021-07-26 19:46:55 -05:00
parent 88f803692a
commit fbeb439bc0
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -85,21 +85,6 @@ func (s *Server) MakeHat(ctx context.Context, size *pb.Size) (hat *pb.Hat, err e
} }
func (s *Server) ListHats(ctx context.Context, q *pb.HatQuery) (hats *pb.Hats, err error) { func (s *Server) ListHats(ctx context.Context, q *pb.HatQuery) (hats *pb.Hats, err error) {
/*
var hat *pb.Hat
hats = &pb.Hats{}
for i := 0; i < 10; i++ {
hat = &pb.Hat{
Inches: int32(rand.Intn(12)),
Color: []string{"white", "black", "red", "blue"}[rand.Intn(4)],
Name: []string{"bowler", "baseball cap", "top hat", "derby"}[rand.Intn(3)],
}
hats.Hats = append(hats.Hats, hat)
}
*/
st, _ := NewStore("hat.db", 0600, nil) st, _ := NewStore("hat.db", 0600, nil)
defer st.Close() defer st.Close()