summaryrefslogtreecommitdiff
path: root/src/tls_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls_wrap.cc')
-rw-r--r--src/tls_wrap.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc
index 3f5ed2c575..62d3fd06fe 100644
--- a/src/tls_wrap.cc
+++ b/src/tls_wrap.cc
@@ -347,7 +347,7 @@ void TLSWrap::EncOut() {
void TLSWrap::EncOutCb(WriteWrap* req_wrap, int status) {
- TLSWrap* wrap = req_wrap->wrap()->Cast<TLSWrap>();
+ TLSWrap* wrap = static_cast<TLSWrap*>(req_wrap->wrap());
req_wrap->Dispose();
// We should not be getting here after `DestroySSL`, because all queued writes
@@ -534,11 +534,6 @@ bool TLSWrap::ClearIn() {
}
-void* TLSWrap::Cast() {
- return reinterpret_cast<void*>(this);
-}
-
-
AsyncWrap* TLSWrap::GetAsyncWrap() {
return static_cast<AsyncWrap*>(this);
}