Skip to content

Commit 9d206a8

Browse files
committed
we don’t need this anymore
1 parent 0a90efb commit 9d206a8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Sources/UnidocDB/Mongo.Session (ext).swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ extension Mongo.Session
2121
}
2222
extension Mongo.Session
2323
{
24-
// This should be part of the swift-mongodb package.
24+
// This should be part of the swift-mongodb package. An incredibly interesting statement,
25+
// considering this method is private.
2526
private
2627
func explain<Command>(database:Mongo.Database, command:Command) async throws -> String
2728
where Command:Mongo.Command

Sources/UnidocRecords/Volumes/Vertices/Unidoc.Vertex.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ extension Unidoc.Vertex
187187

188188
/// Appears in ``Decl`` and ``Foreign``.
189189
case flags = "L"
190-
/// Deprecated.
191-
case flags_swift = "F"
192190

193191
/// Only appears in ``Decl``.
194192
case signature_availability = "A"
@@ -388,7 +386,7 @@ extension Unidoc.Vertex:BSONDocumentDecodable
388386
let culture:Unidoc.Scalar = try bson[.culture].decode()
389387

390388
self = .decl(.init(id: id,
391-
flags: try bson[.flags]?.decode() ?? .swift(try bson[.flags_swift].decode()),
389+
flags: try bson[.flags].decode(),
392390
signature: .init(
393391
availability: try bson[.signature_availability]?.decode() ?? .init(),
394392
abridged: Signature<Unidoc.Scalar?>.Abridged.init(
@@ -443,7 +441,7 @@ extension Unidoc.Vertex:BSONDocumentDecodable
443441
self = .foreign(.init(id: id,
444442
extendee: try bson[.extendee].decode(),
445443
scope: try bson[.scope]?.decode() ?? [],
446-
flags: try bson[.flags]?.decode() ?? .swift(try bson[.flags_swift].decode()),
444+
flags: try bson[.flags].decode(),
447445
stem: try bson[.stem].decode(),
448446
hash: try bson[.hash].decode()))
449447

0 commit comments

Comments
 (0)