diff options
Diffstat (limited to 'src/vm/generics.cpp')
-rw-r--r-- | src/vm/generics.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/vm/generics.cpp b/src/vm/generics.cpp index a92177d9d0..26cd8a5356 100644 --- a/src/vm/generics.cpp +++ b/src/vm/generics.cpp @@ -225,7 +225,6 @@ ClassLoader::CreateTypeHandleForNonCanonicalGenericInstantiation( // These are all copied across from the old MT, i.e. don't depend on the // instantiation. BOOL fHasRemotingVtsInfo = FALSE; - BOOL fHasContextStatics = FALSE; BOOL fHasGenericsStaticsInfo = pOldMT->HasGenericsStaticsInfo(); #ifdef FEATURE_COMINTEROP @@ -239,10 +238,6 @@ ClassLoader::CreateTypeHandleForNonCanonicalGenericInstantiation( // Collectible types have some special restrictions if (pAllocator->IsCollectible()) { - if (fHasContextStatics) - { - ClassLoader::ThrowTypeLoadException(pTypeKey, IDS_CLASSLOAD_COLLECTIBLESPECIALSTATICS); - } if (pOldMT->HasFixedAddressVTStatics()) { ClassLoader::ThrowTypeLoadException(pTypeKey, IDS_CLASSLOAD_COLLECTIBLEFIXEDVTATTR); @@ -289,7 +284,6 @@ ClassLoader::CreateTypeHandleForNonCanonicalGenericInstantiation( fHasCCWTemplate, fHasRCWPerTypeData, fHasRemotingVtsInfo, - fHasContextStatics, pOldMT->HasTokenOverflow()); // We need space for the PerInstInfo, i.e. the generic dictionary pointers... |