Skip to content

Commit

Permalink
Removed usecase fhistorytotal
Browse files Browse the repository at this point in the history
  • Loading branch information
grrlopes committed Aug 26, 2023
1 parent 88e2d64 commit 772b834
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 68 deletions.
1 change: 0 additions & 1 deletion entity/cmdmodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type CmdModel struct {
Pagination *paginator.Model
Count *int
Fcount int
Ftotal int
ActiveSyncScreen bool
ActiveFinderScreen bool
StatusSyncScreen bool
Expand Down
4 changes: 0 additions & 4 deletions ui/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"github.com/grrlopes/storydb/repositories/sqlite"
"github.com/grrlopes/storydb/usecase/count"
"github.com/grrlopes/storydb/usecase/fhistory"
"github.com/grrlopes/storydb/usecase/fhistorytotal"
"github.com/grrlopes/storydb/usecase/finder"
findercount "github.com/grrlopes/storydb/usecase/finderCount"
"github.com/grrlopes/storydb/usecase/listall"
Expand All @@ -32,7 +31,6 @@ var (
usecasePager pager.InputBoundary = pager.NewPager(repositoryGorm)
usecaseCount count.InputBoundary = count.NewCount(repositoryGorm)
usecaseHistory fhistory.InputBoundary = fhistory.NewFHistory(frepository, repositoryGorm)
usecaseHistoryTotal fhistorytotal.InputBoundary = fhistorytotal.NewFHistoryTotal(frepository, repositoryGorm)
usecaseFinder finder.InputBoundary = finder.NewFinder(repositoryGorm)
usecaseFinderCount findercount.InputBoundary = findercount.NewFinderCount(repositoryGorm)
usecaseAll listall.InputBoundary = listall.NewListAll(repositoryGorm)
Expand All @@ -44,7 +42,6 @@ type ModelHome struct {

func NewHome(m *entity.CmdModel) *ModelHome {
count := usecaseCount.Execute()
ftotal := usecaseHistoryTotal.Execute()
p := paginator.New()
p.SetTotalPages(count)
p.KeyMap.NextPage = helper.HotKeysHome.PageNext
Expand All @@ -68,7 +65,6 @@ func NewHome(m *entity.CmdModel) *ModelHome {
Count: &count,
ActiveSyncScreen: false,
StatusSyncScreen: false,
Ftotal: ftotal,
Finder: txt,
HomeKeys: helper.HotKeysHome,
FinderKeys: helper.HotKeysFinder,
Expand Down
63 changes: 0 additions & 63 deletions usecase/fhistorytotal/fhistorytotal.go

This file was deleted.

0 comments on commit 772b834

Please sign in to comment.