Skip to content

Commit 43326ef

Browse files
committed
Remove dead code.
1 parent 5e342aa commit 43326ef

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

lib/IRGen/GenMeta.cpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,37 +1770,6 @@ llvm::Value *irgen::emitClassHeapMetadataRef(IRGenFunction &IGF, CanType type,
17701770
return result;
17711771
}
17721772

1773-
namespace {
1774-
/// A CRTP type visitor for deciding whether the metatype for a type
1775-
/// has trivial representation.
1776-
struct HasTrivialMetatype : CanTypeVisitor<HasTrivialMetatype, bool> {
1777-
/// Class metatypes have non-trivial representation due to the
1778-
/// possibility of subclassing.
1779-
bool visitClassType(CanClassType type) {
1780-
return false;
1781-
}
1782-
bool visitBoundGenericClassType(CanBoundGenericClassType type) {
1783-
return false;
1784-
}
1785-
1786-
/// Archetype metatypes have non-trivial representation in case
1787-
/// they instantiate to a class metatype.
1788-
bool visitArchetypeType(CanArchetypeType type) {
1789-
return false;
1790-
}
1791-
1792-
/// All levels of class metatypes support subtyping.
1793-
bool visitMetatypeType(CanMetatypeType type) {
1794-
return visit(type.getInstanceType());
1795-
}
1796-
1797-
/// Everything else is trivial.
1798-
bool visitType(CanType type) {
1799-
return false;
1800-
}
1801-
};
1802-
}
1803-
18041773
/// Emit a metatype value for a known type.
18051774
void irgen::emitMetatypeRef(IRGenFunction &IGF, CanMetatypeType type,
18061775
Explosion &explosion) {

0 commit comments

Comments
 (0)