Skip to content

Commit

Permalink
create, fmt, info: remove unused imports (#825)
Browse files Browse the repository at this point in the history
Aside: with this commit, there is exactly one file (`helpers.nim`) that
imports `jsony`, and it also exports `jsony`. This makes the codebase
more robust to the problem of `parseHook`s not being visible.
  • Loading branch information
ee7 authored Oct 6, 2023
1 parent 0f6ffe6 commit 77fd69e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/create/approaches.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import std/[os, strformat, strutils]
import ".."/[fmt/approaches, helpers, sync/sync_common, types_track_config,
types_approaches_config, uuid/uuid]
import ".."/[fmt/approaches, helpers, types_track_config, types_approaches_config, uuid/uuid]

func kebabToTitleCase(slug: Slug): string =
result = newStringOfCap(slug.len)
Expand Down
3 changes: 1 addition & 2 deletions src/create/articles.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import std/[os, strformat, strutils]
import ".."/[fmt/articles, helpers, sync/sync_common, types_track_config,
types_articles_config, uuid/uuid]
import ".."/[fmt/articles, helpers, types_track_config, types_articles_config, uuid/uuid]

func kebabToTitleCase(slug: Slug): string =
result = newStringOfCap(slug.len)
Expand Down
2 changes: 1 addition & 1 deletion src/fmt/track_config.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import std/[algorithm, sequtils, json, options, sets, strformat]
import std/[algorithm, sequtils, json, options, sets]
import ".."/[helpers, sync/sync_common, types_track_config]

func trackConfigKeyOrderForFmt(e: TrackConfig): seq[TrackConfigKey] =
Expand Down
1 change: 0 additions & 1 deletion src/info/info.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import std/[algorithm, os, sequtils, sets, strformat, strutils, sugar, terminal]
import pkg/jsony
import ".."/[cli, sync/probspecs, types_track_config]

proc header(s: string): string =
Expand Down

0 comments on commit 77fd69e

Please sign in to comment.