summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorRas-al-Ghul <dipankar1995@gmail.com>2016-02-04 10:38:41 +0530
committerNoel Grandin <noelgrandin@gmail.com>2016-02-04 07:21:44 +0000
commit881c1c961ea3c0f651a74f637786caf1367a26f3 (patch)
tree8646248df4d27ad3789adc74faead6c4f0b7e927 /vcl
parent4e9b528dccdfc438394b1ffe029f1fc8178a6086 (diff)
tdf#96888 - Kill internal vcl dog-tags ...
Finally removed struct ImplDelData Change-Id: Ib2bb4a51b94886b95bca0c84adffc8fd4123e8b8 Reviewed-on: https://gerrit.libreoffice.org/22093 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/svdata.hxx11
-rw-r--r--vcl/inc/window.h3
-rw-r--r--vcl/source/window/window.cxx10
3 files changed, 0 insertions, 24 deletions
diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx
index e43b0d4a676d..628f45dcff8b 100644
--- a/vcl/inc/svdata.hxx
+++ b/vcl/inc/svdata.hxx
@@ -366,17 +366,6 @@ bool ImplInitAccessBridge();
FieldUnitStringList* ImplGetFieldUnits();
FieldUnitStringList* ImplGetCleanedFieldUnits();
-// ImplDelData is used as a "dog tag" by a window when it
-// does something that could indirectly destroy the window
-// TODO: wild destruction of a window should not be possible
-
-struct ImplDelData
-{
- ImplDelData* mpNext;
- VclPtr<vcl::Window> mpWindow;
- bool mbDel;
-};
-
struct ImplSVEvent
{
void* mpData;
diff --git a/vcl/inc/window.h b/vcl/inc/window.h
index 5203564f5ed2..db8bdfb0b6d1 100644
--- a/vcl/inc/window.h
+++ b/vcl/inc/window.h
@@ -28,8 +28,6 @@
#include <vector>
#include <set>
-struct ImplDelData;
-
namespace vcl {
class Window;
}
@@ -209,7 +207,6 @@ public:
// The canvas interface for this VCL window. Is persistent after the first GetCanvas() call
css::uno::WeakReference< css::rendering::XCanvas > mxCanvas;
- ImplDelData* mpFirstDel;
void* mpUserData;
vcl::Cursor* mpCursor;
Pointer maPointer;
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index fbe64960bb23..1d04005eb0ef 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -510,15 +510,6 @@ void Window::dispose()
OutputDevice *pOutDev = GetOutDev();
pOutDev->ReleaseGraphics();
- // notify ImplDelData subscribers of this window about the window deletion
- ImplDelData* pDelData = mpWindowImpl->mpFirstDel;
- while ( pDelData )
- {
- pDelData->mbDel = true;
- pDelData->mpWindow.clear(); // #112873# pDel is not associated with a Window anymore
- pDelData = pDelData->mpNext;
- }
-
// remove window from the lists
ImplRemoveWindow( true );
@@ -628,7 +619,6 @@ WindowImpl::WindowImpl( WindowType nType )
mpLastFocusWindow = nullptr; // window for focus restore
mpDlgCtrlDownWindow = nullptr; // window for dialog control
mnChildEventListenersIteratingCount = 0;
- mpFirstDel = nullptr; // Dtor notification list
mpUserData = nullptr; // user data
mpCursor = nullptr; // cursor
mpControlFont = nullptr; // font properties