Skip to content

Commit

Permalink
cleanup deadcode
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantac committed Apr 28, 2024
1 parent 1790091 commit dd8ba0a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
13 changes: 0 additions & 13 deletions ui/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,19 +191,6 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, cmd
}

func (m *model) search(query string) tea.Cmd {
// accountFilter := m.filterGroup.AccountFilter()
// dateFilter := m.filterGroup.DateFilter()
return tea.Cmd(
m.hlcmd.Register(hledger.NewOptions().WithAccount(m.filterGroup.account.Value())),
// m.hlcmd.register(m.isTxnsSortedByMostRecent,
// accountFilter,
// dateFilter,
// m.searchFilter,
// ),
)
}

func (m *model) View() string {
if m.quitting {
return ""
Expand Down
8 changes: 0 additions & 8 deletions ui/period.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ import (
"github.com/siddhantac/hledger"
)

type periodType string

const (
monthly periodType = "monthly"
quarter periodType = "quarterly"
yearly periodType = "yearly"
)

type Period struct {
periodType hledger.PeriodType
}
Expand Down
20 changes: 0 additions & 20 deletions ui/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,6 @@ var activeItemStyle = lipgloss.NewStyle().
BorderLeft(true).
PaddingLeft(1)

var activeTableStyle = lipgloss.NewStyle().
BorderStyle(lipgloss.HiddenBorder()).
BorderForeground(lipgloss.Color("240"))

var inactiveTableStyle = lipgloss.NewStyle().
BorderStyle(lipgloss.NormalBorder()).
BorderForeground(lipgloss.Color("240"))

var titleTextStyle = lipgloss.NewStyle().
Bold(true).
Background(lipgloss.Color("55")).
PaddingLeft(1).
PaddingRight(1).
MarginTop(1)

var containerStyle = lipgloss.NewStyle().PaddingLeft(1)

var tabSeparatorStyle = lipgloss.NewStyle().
Foreground(theme.SecondaryForeground)

var tabStyle = lipgloss.NewStyle().
PaddingLeft(1).
PaddingRight(1)
Expand Down

0 comments on commit dd8ba0a

Please sign in to comment.