summaryrefslogtreecommitdiff
path: root/src/vm/eehash.cpp
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-05-17 18:25:05 -0700
committerGitHub <noreply@github.com>2017-05-17 18:25:05 -0700
commit13e7c4368da664a8b50228b1a5ef01a660fbb2dd (patch)
treef3f36157c201fab5bc4558beceb9f8e83fbab3f6 /src/vm/eehash.cpp
parentc290deb3bd5331a5d70470e6203f2b4b2059bd90 (diff)
downloadcoreclr-13e7c4368da664a8b50228b1a5ef01a660fbb2dd.tar.gz
coreclr-13e7c4368da664a8b50228b1a5ef01a660fbb2dd.tar.bz2
coreclr-13e7c4368da664a8b50228b1a5ef01a660fbb2dd.zip
Finish deleting dead CAS code from CoreLib (#11436)
Fixes #9321 and deletes CleanupToDoList.cs Delete unmanaged security implementation
Diffstat (limited to 'src/vm/eehash.cpp')
-rw-r--r--src/vm/eehash.cpp83
1 files changed, 0 insertions, 83 deletions
diff --git a/src/vm/eehash.cpp b/src/vm/eehash.cpp
index e5d3c0bdeb..694fab7d2b 100644
--- a/src/vm/eehash.cpp
+++ b/src/vm/eehash.cpp
@@ -11,8 +11,6 @@
#include "common.h"
#include "excep.h"
#include "eehash.h"
-#include "securityattributes.h"
-#include "securitydeclarativecache.h"
#include "stringliteralmap.h"
#include "clsload.hpp"
#include "typectxt.h"
@@ -291,87 +289,6 @@ DWORD EEUnicodeStringLiteralHashTableHelper::Hash(EEStringData *pKey)
return (HashBytes((const BYTE *) pKey->GetStringBuffer(), pKey->GetCharCount() * sizeof(WCHAR)));
}
-// ============================================================================
-// Permission set hash table helper.
-// ============================================================================
-
-EEHashEntry_t * EEPsetHashTableHelper::AllocateEntry(PsetCacheKey *pKey, BOOL bDeepCopy, void *pHeap)
-{
- CONTRACTL
- {
- NOTHROW;
- GC_NOTRIGGER;
- INJECT_FAULT(return NULL;);
- }
- CONTRACTL_END
-
- _ASSERTE(!bDeepCopy);
-
- EEHashEntry_t *pEntry;
-
- if (pHeap) {
-
- S_SIZE_T sizeEntry;
- LoaderHeap *pLHeap;
-
- sizeEntry = S_SIZE_T(sizeof (BYTE)) * (S_SIZE_T)SIZEOF_EEHASH_ENTRY +
- (S_SIZE_T)sizeof (PPsetCacheKey);
-
- pLHeap = (LoaderHeap*) pHeap;
-
- pEntry = (EEHashEntry_t *)
- ((void*) pLHeap->AllocMem_NoThrow (sizeEntry));
-
- } else {
- pEntry = (EEHashEntry_t *) new (nothrow)
- BYTE [SIZEOF_EEHASH_ENTRY + sizeof(PPsetCacheKey)];
- }
-
- if (pEntry) {
- *((PPsetCacheKey*)pEntry->Key) = pKey;
- }
-
- return pEntry;
-}
-
-void EEPsetHashTableHelper::DeleteEntry(EEHashEntry_t *pEntry, void *pHeap)
-{
- LIMITED_METHOD_CONTRACT;
-
- //
- // If a heap is present, memory will be reclaimed as part of appdomain
- // unload.
- //
-
- if (pHeap == NULL) {
- delete [] (BYTE*)pEntry;
- }
-
-}
-
-BOOL EEPsetHashTableHelper::CompareKeys(EEHashEntry_t *pEntry, PsetCacheKey *pKey)
-{
- LIMITED_METHOD_CONTRACT;
-
- PsetCacheKey *pThis = *((PPsetCacheKey*)pEntry->Key);
- return pKey->IsEquiv(pThis);
-}
-
-DWORD EEPsetHashTableHelper::Hash(PsetCacheKey *pKey)
-{
- LIMITED_METHOD_CONTRACT;
-
- return pKey->Hash();
-}
-
-PsetCacheKey * EEPsetHashTableHelper::GetKey(EEHashEntry_t *pEntry)
-{
- LIMITED_METHOD_CONTRACT;
-
- PsetCacheKey *pThis = *((PPsetCacheKey*)pEntry->Key);
- return pThis;
-}
-
// ============================================================================
// Instantiation hash table helper.