Browse Source

Destructor not needed

Tero Paananen 4 years ago
parent
commit
2e09b078a4

+ 0
- 5
windows/ReactNativeWebView/ReactWebView.cpp View File

30
         RegisterEvents();
30
         RegisterEvents();
31
     }
31
     }
32
 
32
 
33
-    ReactWebView::~ReactWebView()
34
-    {
35
-      OutputDebugStringW(L"> ReactWebView::~ReactWebView()\n");
36
-    }
37
-
38
     void ReactWebView::RegisterEvents() {
33
     void ReactWebView::RegisterEvents() {
39
         m_navigationStartingRevoker = m_webView.NavigationStarting(
34
         m_navigationStartingRevoker = m_webView.NavigationStarting(
40
             winrt::auto_revoke, [ref = get_weak()](auto const& sender, auto const& args) {
35
             winrt::auto_revoke, [ref = get_weak()](auto const& sender, auto const& args) {

+ 0
- 1
windows/ReactNativeWebView/ReactWebView.h View File

13
     public:
13
     public:
14
         ReactWebView(Microsoft::ReactNative::IReactContext const& reactContext);
14
         ReactWebView(Microsoft::ReactNative::IReactContext const& reactContext);
15
         void PostMessage(winrt::hstring const& message);
15
         void PostMessage(winrt::hstring const& message);
16
-        ~ReactWebView();
17
 
16
 
18
     private:
17
     private:
19
         winrt::Windows::UI::Xaml::Controls::WebView m_webView{ nullptr };
18
         winrt::Windows::UI::Xaml::Controls::WebView m_webView{ nullptr };