File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1
1
public enum Argument {
2
- case safe( SafeString )
3
2
case quoted( QuotedString )
4
3
case verbatim( String )
5
4
6
- init ( safe string: String ) throws {
7
- self = try . safe( . init( string) )
8
- }
9
-
10
- init ( _ string: SafeString ) {
11
- self = . safe( string)
12
- }
13
-
14
5
init ( quoted string: String ) {
15
6
self = . quoted( . init( string) )
16
7
}
@@ -21,8 +12,6 @@ public enum Argument {
21
12
22
13
var string : String {
23
14
switch self {
24
- case let . safe( value) :
25
- return value. value
26
15
case let . quoted( value) :
27
16
return value. quoted
28
17
case let . verbatim( string) :
@@ -40,9 +29,5 @@ extension String {
40
29
41
30
extension Array < String > {
42
31
var quoted : [ Argument ] { map ( \. quoted) }
43
-
44
- @available ( * , deprecated)
45
- func safe( ) throws -> [ Argument ] { try map ( Argument . init ( safe: ) ) }
46
-
47
32
var verbatim : [ Argument ] { map ( \. verbatim) }
48
33
}
You can’t perform that action at this time.
0 commit comments