Skip to content

Commit

Permalink
chore: remove redundant initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavFitz committed Aug 15, 2023
1 parent c77101b commit d8162b2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ struct DisjunctiveFacetingHelper {
let refinements: [Attribute: [String]]
let disjunctiveFacets: Set<Attribute>

init(query: Query,
refinements: [Attribute: [String]],
disjunctiveFacets: Set<Attribute>) {
self.query = query
self.refinements = refinements
self.disjunctiveFacets = disjunctiveFacets
}

/// Build filters SQL string from the provided refinements and disjunctive facets set
func buildFilters(excluding excludedAttribute: Attribute?) -> String {
String(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ public struct WaitableWrapper<T> {
public let wrapped: T
let tasksToWait: [Waitable]

init(wrapped: T, tasksToWait: [Waitable]) {
self.wrapped = wrapped
self.tasksToWait = tasksToWait
}

}

extension WaitableWrapper where T: IndexTask {
Expand Down
4 changes: 0 additions & 4 deletions Sources/AlgoliaSearchClient/Models/Logs/LogType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ public struct LogType: Codable {

let rawValue: String

init(rawValue: String) {
self.rawValue = rawValue
}

/// Retrieve all the logs.
public static var all: Self { .init(rawValue: #function) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ public extension MultiSearchResponse {
/// Error occured while facets search response decoding
public let facetSearchResponseDecodingError: Error

init(searchResponseDecodingError: Error,
facetSearchResponseDecodingError: Error) {
self.searchResponseDecodingError = searchResponseDecodingError
self.facetSearchResponseDecodingError = facetSearchResponseDecodingError
}

}

}
Expand Down

0 comments on commit d8162b2

Please sign in to comment.