Skip to content

Commit aa418fc

Browse files
authored
Remove unused declarations from clsload.hpp (dotnet#107509)
* Remove unused declarations from clsload.hpp * also remove unused ClassLoader::TryEnsureLoaded
1 parent 7d68c7f commit aa418fc

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

src/coreclr/vm/clsload.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -836,27 +836,6 @@ void ClassLoader::EnsureLoaded(TypeHandle typeHnd, ClassLoadLevel level)
836836
#endif // DACCESS_COMPILE
837837
}
838838

839-
/*static*/
840-
void ClassLoader::TryEnsureLoaded(TypeHandle typeHnd, ClassLoadLevel level)
841-
{
842-
WRAPPER_NO_CONTRACT;
843-
844-
#ifndef DACCESS_COMPILE // Nothing to do for the DAC case
845-
846-
EX_TRY
847-
{
848-
ClassLoader::EnsureLoaded(typeHnd, level);
849-
}
850-
EX_CATCH
851-
{
852-
// Some type may not load successfully. For eg. generic instantiations
853-
// that do not satisfy the constraints of the type arguments.
854-
}
855-
EX_END_CATCH(RethrowTerminalExceptions);
856-
857-
#endif // DACCESS_COMPILE
858-
}
859-
860839
/* static */
861840
TypeHandle ClassLoader::LookupTypeKey(const TypeKey *pKey, EETypeHashTable *pTable)
862841
{

src/coreclr/vm/clsload.hpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,6 @@ class ClassLoader
564564
Module * pLookInThisModuleOnly,
565565
Loader::LoadFlag loadFlag);
566566

567-
static PTR_Module ComputeLoaderModuleForCompilation(Module *pDefinitionModule, // the module that declares the generic type or method
568-
mdToken token,
569-
Instantiation classInst, // the type arguments to the type (if any)
570-
Instantiation methodInst); // the type arguments to the method (if any)
571-
572567
public:
573568
void Init(AllocMemTracker *pamTracker);
574569

@@ -718,7 +713,6 @@ class ClassLoader
718713
BOOL * pfUsesTypeForwarder = NULL);
719714

720715
static void EnsureLoaded(TypeHandle typeHnd, ClassLoadLevel level = CLASS_LOADED);
721-
static void TryEnsureLoaded(TypeHandle typeHnd, ClassLoadLevel level = CLASS_LOADED);
722716

723717
public:
724718
// Look up a class by name
@@ -889,24 +883,7 @@ class ClassLoader
889883

890884
static void DECLSPEC_NORETURN ThrowTypeLoadException(const TypeKey *pKey, UINT resIDWhy);
891885

892-
893-
BOOL IsNested(const NameHandle* pName, mdToken *mdEncloser);
894-
static BOOL IsNested(ModuleBase *pModude, mdToken typeDefOrRef, mdToken *mdEncloser);
895-
896886
public:
897-
// Helpers for FindClassModule()
898-
BOOL CompareNestedEntryWithTypeDef(IMDInternalImport *pImport,
899-
mdTypeDef mdCurrent,
900-
EEClassHashTable *pClassHash,
901-
PTR_EEClassHashEntry pEntry);
902-
BOOL CompareNestedEntryWithTypeRef(IMDInternalImport *pImport,
903-
mdTypeRef mdCurrent,
904-
EEClassHashTable *pClassHash,
905-
PTR_EEClassHashEntry pEntry);
906-
BOOL CompareNestedEntryWithExportedType(IMDInternalImport *pImport,
907-
mdExportedType mdCurrent,
908-
EEClassHashTable *pClassHash,
909-
PTR_EEClassHashEntry pEntry);
910887

911888
//Attempts to find/load/create a type handle but does not throw
912889
// if used in "find" mode.

0 commit comments

Comments
 (0)