File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Sources/UnidocDatabase/Packages Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -167,35 +167,6 @@ extension PackageDatabase.Graphs
167
167
}
168
168
extension PackageDatabase . Graphs
169
169
{
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
-
199
170
func load( _ pins: [ Snapshot . ID ] , with session: Mongo . Session ) async throws -> [ Snapshot ]
200
171
{
201
172
let snapshots : [ Snapshot ] = try await session. run (
You can’t perform that action at this time.
0 commit comments