From fbeb439bc0735ac5b56695e5872149fbb091c424 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Mon, 26 Jul 2021 19:46:55 -0500 Subject: [PATCH] Remove commented out code --- internal/haberdasherserver/server.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/internal/haberdasherserver/server.go b/internal/haberdasherserver/server.go index 5a20220..49fcc47 100644 --- a/internal/haberdasherserver/server.go +++ b/internal/haberdasherserver/server.go @@ -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) { - /* - 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) defer st.Close()