diff options
author | Andrew Au <andrewau@microsoft.com> | 2019-03-26 17:38:27 -0700 |
---|---|---|
committer | Andrew Au <cshung@gmail.com> | 2019-03-27 09:07:38 -0700 |
commit | aa077b43cc3a1911e67fc63eb592dd36caaa0d70 (patch) | |
tree | 453639f037b33ca1df630bf30b1343f3d3ecbc22 /src | |
parent | 94db6145bca291313156eec40cb16518f7f9fc1d (diff) | |
download | coreclr-aa077b43cc3a1911e67fc63eb592dd36caaa0d70.tar.gz coreclr-aa077b43cc3a1911e67fc63eb592dd36caaa0d70.tar.bz2 coreclr-aa077b43cc3a1911e67fc63eb592dd36caaa0d70.zip |
Eliminate EventPipeBuffer::Close()
Diffstat (limited to 'src')
-rw-r--r-- | src/vm/eventpipebuffer.cpp | 16 | ||||
-rw-r--r-- | src/vm/eventpipebuffer.h | 3 |
2 files changed, 0 insertions, 19 deletions
diff --git a/src/vm/eventpipebuffer.cpp b/src/vm/eventpipebuffer.cpp index 31646be034..887fbc0a22 100644 --- a/src/vm/eventpipebuffer.cpp +++ b/src/vm/eventpipebuffer.cpp @@ -133,22 +133,6 @@ LARGE_INTEGER EventPipeBuffer::GetMostRecentTimeStamp() const return m_mostRecentTimeStamp; } -void EventPipeBuffer::Clear() -{ - CONTRACTL - { - NOTHROW; - GC_TRIGGERS; - MODE_ANY; - } - CONTRACTL_END; - - memset(m_pBuffer, 0, (size_t)(m_pLimit - m_pBuffer)); - m_pCurrent = GetNextAlignedAddress(m_pBuffer); - m_mostRecentTimeStamp.QuadPart = 0; - m_pLastPoppedEvent = NULL; -} - EventPipeEventInstance* EventPipeBuffer::GetNext(EventPipeEventInstance *pEvent, LARGE_INTEGER beforeTimeStamp) { CONTRACTL diff --git a/src/vm/eventpipebuffer.h b/src/vm/eventpipebuffer.h index 7b20883f73..c717d894c2 100644 --- a/src/vm/eventpipebuffer.h +++ b/src/vm/eventpipebuffer.h @@ -103,9 +103,6 @@ public: // Get the timestamp of the most recent event in the buffer. LARGE_INTEGER GetMostRecentTimeStamp() const; - // Clear the buffer. - void Clear(); - // Get the next event from the buffer as long as it is before the specified timestamp. // Input of NULL gets the first event. EventPipeEventInstance* GetNext(EventPipeEventInstance *pEvent, LARGE_INTEGER beforeTimeStamp); |