Skip to content

Commit 9311c82

Browse files
committed
Remove unneeded property.
1 parent 16224c0 commit 9311c82

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Shared/Supporting Files/Views/SamplesSearchView.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
import SwiftUI
1616

1717
struct SamplesSearchView: View {
18-
/// The samples to be searched.
19-
private let samples: [Sample]
20-
21-
/// The search query.
18+
/// The search query to highlight.
2219
private let query: String
2320

2421
/// The search result to display in the various sections.
@@ -74,7 +71,6 @@ extension SamplesSearchView {
7471
/// - samples: All samples retrieved from the Samples directory.
7572
/// - query: The search query in the search bar.
7673
init(samples: [Sample], query: String) {
77-
self.samples = samples
7874
self.query = query
7975
self.searchResult = Self.searchSamples(in: samples, with: query)
8076
}

0 commit comments

Comments
 (0)