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