Remove unused error and add a bit of code documentation

This commit is contained in:
Mathew Polzin
2019-01-20 18:54:37 -08:00
parent 1d8ceef317
commit 15e13e2cc7
+3 -4
View File
@@ -11,6 +11,9 @@ import AnyCodable
/// A Sampleable type can provide a sample value.
/// This is useful for reflection.
public protocol Sampleable {
/// Get a sample value of type Self. This can be the
/// same value every time, or it can be an arbitrarily random
/// value each time.
static var sample: Self { get }
}
@@ -94,7 +97,3 @@ extension NoLinks: Sampleable {
return .none
}
}
public enum SampleableError: Swift.Error {
case allowedValuesNotOfExpectedType(forNode: JSONNode, allowedValues: [Any])
}