Skip to content

Commit fd8d6c4

Browse files
committed
[MERGE chakra-core#3540 @curtisman] Cleanup: remove unused fields arrayMatch* in ScriptContext
Merge pull request chakra-core#3540 from curtisman:clean
2 parents 3e0459c + 002e495 commit fd8d6c4

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

lib/Runtime/Base/ScriptContext.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ namespace Js
5959
#endif
6060
trigramAlphabet(nullptr),
6161
regexStacks(nullptr),
62-
arrayMatchInit(false),
6362
config(threadContext->GetConfig(), threadContext->IsOptimizedForManyInstances()),
6463
#if ENABLE_BACKGROUND_PARSING
6564
backgroundParser(nullptr),

lib/Runtime/Base/ScriptContext.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -922,10 +922,6 @@ namespace Js
922922
CriticalSection debugContextCloseCS;
923923

924924
public:
925-
static const int kArrayMatchCh=72;
926-
static const int kMaxArrayMatchIndex=8192;
927-
short arrayMatchItems[kArrayMatchCh];
928-
bool arrayMatchInit;
929925

930926
#ifdef LEAK_REPORT
931927
LeakReport::UrlRecord * urlRecord;
@@ -981,17 +977,6 @@ namespace Js
981977
time_t GetCreateTime() const { return createTime; }
982978
uint GetAllocId() const { return allocId; }
983979
#endif
984-
void InitializeArrayMatch()
985-
{
986-
if (!arrayMatchInit)
987-
{
988-
for (int i=0;i<kArrayMatchCh;i++)
989-
{
990-
arrayMatchItems[i]= -1;
991-
}
992-
arrayMatchInit=true;
993-
}
994-
}
995980

996981
#ifdef HEAP_ENUMERATION_VALIDATION
997982
bool IsInitialized() { return this->isInitialized; }

0 commit comments

Comments
 (0)