mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove unused literal convertible protocol descriptions
Formerly used in creating friendly type-checker diagnostics, these seem to be dead now. Swift SVN r32921
This commit is contained in:
@@ -254,7 +254,7 @@ getAlternativeLiteralTypes(KnownProtocolKind kind) {
|
||||
switch (kind) {
|
||||
#define PROTOCOL(Protocol) \
|
||||
case KnownProtocolKind::Protocol: llvm_unreachable("Not a literal protocol");
|
||||
#define LITERAL_CONVERTIBLE_PROTOCOL(Protocol, Description)
|
||||
#define LITERAL_CONVERTIBLE_PROTOCOL(Protocol)
|
||||
#include "swift/AST/KnownProtocols.def"
|
||||
|
||||
case KnownProtocolKind::ArrayLiteralConvertible: index = 0; break;
|
||||
@@ -292,7 +292,7 @@ getAlternativeLiteralTypes(KnownProtocolKind kind) {
|
||||
switch (kind) {
|
||||
#define PROTOCOL(Protocol) \
|
||||
case KnownProtocolKind::Protocol: llvm_unreachable("Not a literal protocol");
|
||||
#define LITERAL_CONVERTIBLE_PROTOCOL(Protocol, Description)
|
||||
#define LITERAL_CONVERTIBLE_PROTOCOL(Protocol)
|
||||
#include "swift/AST/KnownProtocols.def"
|
||||
|
||||
case KnownProtocolKind::ArrayLiteralConvertible:
|
||||
|
||||
Reference in New Issue
Block a user