Francois Gouget : mshtml: Nswindow_to_window() is not used anymore, remove it.

Alexandre Julliard julliard at winehq.org
Tue Jul 5 11:07:51 CDT 2016


Module: wine
Branch: master
Commit: 3998a7aa54e028bbab8b0961597370b793f0ad8a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3998a7aa54e028bbab8b0961597370b793f0ad8a

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Jul  2 11:59:50 2016 +0200

mshtml: Nswindow_to_window() is not used anymore, remove it.

It has been superseded by mozwindow_to_window().

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/htmlwindow.c     | 12 ------------
 dlls/mshtml/mshtml_private.h |  1 -
 2 files changed, 13 deletions(-)

diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index d9f1346..bd15cb3 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -3171,18 +3171,6 @@ HRESULT update_window_doc(HTMLInnerWindow *window)
     return hres;
 }
 
-HTMLOuterWindow *nswindow_to_window(const nsIDOMWindow *nswindow)
-{
-    HTMLOuterWindow *iter;
-
-    LIST_FOR_EACH_ENTRY(iter, &window_list, HTMLOuterWindow, entry) {
-        if(iter->nswindow == nswindow)
-            return iter;
-    }
-
-    return NULL;
-}
-
 HTMLOuterWindow *mozwindow_to_window(const mozIDOMWindowProxy *mozwindow)
 {
     HTMLOuterWindow *iter;
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
index a25315c..7401634 100644
--- a/dlls/mshtml/mshtml_private.h
+++ b/dlls/mshtml/mshtml_private.h
@@ -807,7 +807,6 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument*,HTMLDocumentObj*,HTMLInnerWind
 
 HRESULT HTMLOuterWindow_Create(HTMLDocumentObj*,nsIDOMWindow*,HTMLOuterWindow*,HTMLOuterWindow**) DECLSPEC_HIDDEN;
 HRESULT update_window_doc(HTMLInnerWindow*) DECLSPEC_HIDDEN;
-HTMLOuterWindow *nswindow_to_window(const nsIDOMWindow*) DECLSPEC_HIDDEN;
 HTMLOuterWindow *mozwindow_to_window(const mozIDOMWindowProxy*) DECLSPEC_HIDDEN;
 void get_top_window(HTMLOuterWindow*,HTMLOuterWindow**) DECLSPEC_HIDDEN;
 HRESULT HTMLOptionElementFactory_Create(HTMLInnerWindow*,HTMLOptionElementFactory**) DECLSPEC_HIDDEN;




More information about the wine-cvs mailing list