Skip to content

Commit 402b02d

Browse files
committed
lint
1 parent 968c7c5 commit 402b02d

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

Sources/UnidocDatabase/Packages/PackageDatabase.Graphs.swift

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -167,35 +167,6 @@ extension PackageDatabase.Graphs
167167
}
168168
extension PackageDatabase.Graphs
169169
{
170-
@available(*, deprecated)
171-
func load(from edition:Unidoc.Zone, with session:Mongo.Session) async throws -> Snapshot
172-
{
173-
let snapshots:[Snapshot] = try await session.run(
174-
command: Mongo.Find<Mongo.SingleBatch<Snapshot>>.init(Self.name, limit: 1)
175-
{
176-
$0[.hint] = .init
177-
{
178-
$0[Snapshot[.package]] = (-)
179-
$0[Snapshot[.version]] = (-)
180-
}
181-
$0[.filter] = .init
182-
{
183-
$0[Snapshot[.package]] = edition.package
184-
$0[Snapshot[.version]] = edition.version
185-
}
186-
},
187-
against: self.database)
188-
189-
if let snapshot:Snapshot = snapshots.first
190-
{
191-
return snapshot
192-
}
193-
else
194-
{
195-
throw RetrievalError.init(zone: edition)
196-
}
197-
}
198-
199170
func load(_ pins:[Snapshot.ID], with session:Mongo.Session) async throws -> [Snapshot]
200171
{
201172
let snapshots:[Snapshot] = try await session.run(

0 commit comments

Comments
 (0)