@@ -188,33 +188,7 @@ struct SymbolGraphLoader {
188188 }
189189
190190 // Alias to declutter code
191- typealias AvailabilityItem = SymbolGraph . Symbol . Availability . AvailabilityItem
192-
193- /// Cache default availability items as we create them on demand.
194- private var cachedAvailabilityItems = [ DefaultAvailability . ModuleAvailability: AvailabilityItem] ( )
195-
196- /// Returns a symbol graph availability item, given a module availability.
197- /// - returns: An availability item, or `nil` if the input data is invalid.
198- private func availabilityItem( for defaultAvailability: DefaultAvailability . ModuleAvailability ) -> AvailabilityItem ? {
199- if let cached = cachedAvailabilityItems [ defaultAvailability] {
200- return cached
201- }
202- return AvailabilityItem ( defaultAvailability)
203- }
204-
205- private func loadSymbolGraph( at url: URL ) throws -> ( SymbolGraph , isMainSymbolGraph: Bool ) {
206- // This is a private method, the `url` key is known to exist
207- var symbolGraph = symbolGraphs [ url] !
208- let ( moduleName, isMainSymbolGraph) = Self . moduleNameFor ( symbolGraph, at: url)
209-
210- if !isMainSymbolGraph && symbolGraph. module. bystanders == nil {
211- // If this is an extending another module, change the module name to match the extended module.
212- // This makes the symbols in this graph have a path that starts with the extended module's name.
213- symbolGraph. module. name = moduleName
214- }
215-
216- return ( symbolGraph, isMainSymbolGraph)
217- }
191+ private typealias AvailabilityItem = SymbolGraph . Symbol . Availability . AvailabilityItem
218192
219193 /// Adds the missing fallback and default availability information to the unified symbol graph
220194 /// in case it didn't exists in the loaded symbol graphs.
0 commit comments