Skip to content

Commit

Permalink
chore: remove unused queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Sep 10, 2024
1 parent 382278f commit 4c6d23c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 335 deletions.
4 changes: 0 additions & 4 deletions cli/provider/ficsit.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ func (p FicsitProvider) GetMod(context context.Context, modReference string) (*f
return ficsit.GetMod(context, p.client, modReference)
}

func (p FicsitProvider) ModVersions(context context.Context, modReference string, filter ficsit.VersionFilter) (*ficsit.ModVersionsResponse, error) {
return ficsit.ModVersions(context, p.client, modReference, filter)
}

func (p FicsitProvider) ModVersionsWithDependencies(_ context.Context, modID string) ([]resolver.ModVersion, error) {
response, err := ficsit.GetAllModVersions(modID)
if err != nil {
Expand Down
9 changes: 0 additions & 9 deletions ficsit/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ func init() {
client = InitAPI()
}

func TestModVersions(t *testing.T) {
response, err := ModVersions(context.Background(), client, "SmartFoundations", VersionFilter{})
testza.AssertNoError(t, err)
testza.AssertNotNil(t, response)
testza.AssertNotNil(t, response.Mod)
testza.AssertNotNil(t, response.Mod.Versions)
testza.AssertNotZero(t, len(response.Mod.Versions))
}

func TestMods(t *testing.T) {
response, err := Mods(context.Background(), client, ModFilter{})
testza.AssertNoError(t, err)
Expand Down
13 changes: 0 additions & 13 deletions ficsit/queries/mod_versions.graphql

This file was deleted.

24 changes: 0 additions & 24 deletions ficsit/queries/mod_versions_with_dependencies.graphql

This file was deleted.

285 changes: 0 additions & 285 deletions ficsit/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c6d23c

Please sign in to comment.