compilerplugins/clang/unusedmethods.results |    2 -
 include/vcl/window.hxx                      |    8 ----
 vcl/Library_vcl.mk                          |    1 
 vcl/source/window/debug.cxx                 |   48 ----------------------------
 4 files changed, 59 deletions(-)

New commits:
commit 8ada5793ce37c47726108a73091230bea7f98b3d
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Sun Jan 4 23:49:52 2026 +0100
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Tue Jan 6 10:02:55 2026 +0100

    Drop ImplDbgCheckWindow method
    
    Last use of this was removed in 2013 with
    commit c0125d64cbf8adcf070d0bf715e98e57fbeecf8c
    
    "VCL : Remove usage of DBG_CTOR and DBG_DTOR."
    
    Change-Id: Ibb2f02a1ede6eee2bcc76da22b429e600e347c8e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196530
    Tested-by: Jenkins
    Reviewed-by: Gabor Kelemen <[email protected]>

diff --git a/compilerplugins/clang/unusedmethods.results 
b/compilerplugins/clang/unusedmethods.results
index 5b74a0e01fc9..feb414cd1eca 100644
--- a/compilerplugins/clang/unusedmethods.results
+++ b/compilerplugins/clang/unusedmethods.results
@@ -1344,8 +1344,6 @@ include/vcl/weldutils.hxx:350
     void weld::DateFormatter::CursorChangedHdl(weld::Entry &)
 include/vcl/weldutils.hxx:350
     void weld::DateFormatter::LinkStubCursorChangedHdl(void *,weld::Entry &)
-include/vcl/window.hxx:366
-    const char * ImplDbgCheckWindow(const void *)
 include/vcl/windowstate.hxx:123
     std::basic_ostream<char> & vcl::operator<<(std::basic_ostream<char> 
&,const vcl::WindowData &)
 include/xmloff/txtimp.hxx:113
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 9cec090c1a57..7ae169381417 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -366,10 +366,6 @@ enum class GetDlgWindowType
 };
 
 
-#ifdef DBG_UTIL
-const char* ImplDbgCheckWindow( const void* pObj );
-#endif
-
 namespace vcl { class Window; }
 namespace vcl { class Cursor; }
 namespace vcl { class WindowOutputDevice; }
@@ -477,10 +473,6 @@ private:
 
     std::unique_ptr<WindowImpl> mpWindowImpl;
 
-#ifdef DBG_UTIL
-    friend const char* ::ImplDbgCheckWindow( const void* pObj );
-#endif
-
 public:
 
     DECL_DLLPRIVATE_LINK( ImplHandlePaintHdl, Timer*, void );
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index 3375b960715d..3893aca0a2fe 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -173,7 +173,6 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
     vcl/source/window/legacyaccessibility \
     vcl/source/window/clipping \
     vcl/source/window/stacking \
-    vcl/source/window/debug \
     vcl/source/window/globalization \
     vcl/source/window/builder \
     vcl/source/window/commandevent \
diff --git a/vcl/source/window/debug.cxx b/vcl/source/window/debug.cxx
deleted file mode 100644
index 34645692383d..000000000000
--- a/vcl/source/window/debug.cxx
+++ /dev/null
@@ -1,48 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <vcl/window.hxx>
-#include <tools/debug.hxx>
-
-#include <window.h>
-
-#ifdef DBG_UTIL
-const char* ImplDbgCheckWindow(const void* pObj)
-{
-    DBG_TESTSOLARMUTEX();
-
-    const vcl::Window* pWindow = static_cast<vcl::Window const*>(pObj);
-
-    if ((pWindow->GetType() < WindowType::FIRST) || (pWindow->GetType() > 
WindowType::LAST))
-        return "Window data overwrite";
-
-    // check window-chain
-    vcl::Window* pChild = pWindow->mpWindowImpl->mpFirstChild;
-    while (pChild)
-    {
-        if (pChild->mpWindowImpl->mpParent != pWindow)
-            return "Child-Window-Parent wrong";
-        pChild = pChild->mpWindowImpl->mpNext;
-    }
-
-    return nullptr;
-}
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to