mirror of
https://github.com/RWejlgaard/org.git
synced 2026-09-02 01:15:35 +00:00
chore: remove unused Item.CycleState
This commit is contained in:
parent
5d8e64f8a1
commit
c39c24cbfd
1 changed files with 0 additions and 16 deletions
|
|
@ -41,22 +41,6 @@ func (item *Item) ToggleFold() {
|
||||||
item.Folded = !item.Folded
|
item.Folded = !item.Folded
|
||||||
}
|
}
|
||||||
|
|
||||||
// CycleState cycles through todo states
|
|
||||||
func (item *Item) CycleState() {
|
|
||||||
switch item.State {
|
|
||||||
case StateNone:
|
|
||||||
item.State = StateTODO
|
|
||||||
case StateTODO:
|
|
||||||
item.State = StatePROG
|
|
||||||
case StatePROG:
|
|
||||||
item.State = StateBLOCK
|
|
||||||
case StateBLOCK:
|
|
||||||
item.State = StateDONE
|
|
||||||
case StateDONE:
|
|
||||||
item.State = StateNone
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ClockIn starts a new clock entry
|
// ClockIn starts a new clock entry
|
||||||
func (item *Item) ClockIn() bool {
|
func (item *Item) ClockIn() bool {
|
||||||
// Check if already clocked in
|
// Check if already clocked in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue