Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmck-code committed Mar 19, 2024
1 parent a1829ee commit c0e4f81
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions pokesay.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,6 @@ func parseFlags() pokesay.Args {
return args
}

func EntryFpath(idx int) string {
return pokedex.EntryFpath(CowDataRoot, idx)
}

func MetadataFpath(idx int) string {
return pokedex.MetadataFpath(MetadataRoot, idx)
}

func CategoryFpath(category string, fname string) string {
return pokedex.CategoryFpath(CategoryRoot, category, fname)
}

func runListCategories() {
categories := pokedex.ReadStructFromBytes[[]string](GOBCategoryKeys)
fmt.Printf("%s\n%d %s\n", strings.Join(categories, " "), len(categories), "total categories")
Expand Down Expand Up @@ -170,7 +158,7 @@ func runPrintRandom(args pokesay.Args) {
t := timer.NewTimer("runPrintRandom", true)
choice := pokesay.RandomInt(pokedex.ReadIntFromBytes(GOBTotal))
t.Mark("choose index")
metadata := pokedex.ReadMetadataFromEmbedded(GOBCowNames, MetadataFpath(choice))
metadata := pokedex.ReadMetadataFromEmbedded(GOBCowNames, pokedex.MetadataFpath(MetadataRoot, choice))
t.Mark("read metadata")

final := metadata.Entries[pokesay.RandomInt(len(metadata.Entries))]
Expand Down

0 comments on commit c0e4f81

Please sign in to comment.