mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 07:05:59 +00:00
Remove unused code
This commit is contained in:
parent
0560867b83
commit
32c9113bd4
@ -182,7 +182,6 @@ type Msg
|
|||||||
|
|
||||||
type SearchType
|
type SearchType
|
||||||
= BasicSearch
|
= BasicSearch
|
||||||
| ContentSearch
|
|
||||||
| ContentOnlySearch
|
| ContentOnlySearch
|
||||||
|
|
||||||
|
|
||||||
@ -198,9 +197,6 @@ searchTypeString st =
|
|||||||
BasicSearch ->
|
BasicSearch ->
|
||||||
"Names"
|
"Names"
|
||||||
|
|
||||||
ContentSearch ->
|
|
||||||
"Contents"
|
|
||||||
|
|
||||||
ContentOnlySearch ->
|
ContentOnlySearch ->
|
||||||
"Contents Only"
|
"Contents Only"
|
||||||
|
|
||||||
@ -225,9 +221,6 @@ doSearchCmd flags settings offset scroll model =
|
|||||||
BasicSearch ->
|
BasicSearch ->
|
||||||
doSearchDefaultCmd flags settings offset scroll model
|
doSearchDefaultCmd flags settings offset scroll model
|
||||||
|
|
||||||
ContentSearch ->
|
|
||||||
doSearchDefaultCmd flags settings offset scroll model
|
|
||||||
|
|
||||||
ContentOnlySearch ->
|
ContentOnlySearch ->
|
||||||
doSearchIndexCmd flags settings offset scroll model
|
doSearchIndexCmd flags settings offset scroll model
|
||||||
|
|
||||||
|
@ -251,9 +251,6 @@ update mId key flags settings msg model =
|
|||||||
BasicSearch ->
|
BasicSearch ->
|
||||||
SearchMenuMsg (Comp.SearchMenu.SetAllName str)
|
SearchMenuMsg (Comp.SearchMenu.SetAllName str)
|
||||||
|
|
||||||
ContentSearch ->
|
|
||||||
SearchMenuMsg (Comp.SearchMenu.SetFulltext str)
|
|
||||||
|
|
||||||
ContentOnlySearch ->
|
ContentOnlySearch ->
|
||||||
SetContentOnly str
|
SetContentOnly str
|
||||||
in
|
in
|
||||||
|
@ -289,9 +289,6 @@ viewSearchBar flags model =
|
|||||||
BasicSearch ->
|
BasicSearch ->
|
||||||
model.searchMenuModel.allNameModel
|
model.searchMenuModel.allNameModel
|
||||||
|
|
||||||
ContentSearch ->
|
|
||||||
model.searchMenuModel.fulltextModel
|
|
||||||
|
|
||||||
ContentOnlySearch ->
|
ContentOnlySearch ->
|
||||||
model.contentOnlySearch
|
model.contentOnlySearch
|
||||||
|
|
||||||
@ -388,9 +385,6 @@ hasMoreSearch model =
|
|||||||
BasicSearch ->
|
BasicSearch ->
|
||||||
{ is | allNames = Nothing }
|
{ is | allNames = Nothing }
|
||||||
|
|
||||||
ContentSearch ->
|
|
||||||
{ is | fullText = Nothing }
|
|
||||||
|
|
||||||
ContentOnlySearch ->
|
ContentOnlySearch ->
|
||||||
Api.Model.ItemSearch.empty
|
Api.Model.ItemSearch.empty
|
||||||
in
|
in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user