From 3c208cd717341a0204d6dd9a9a1fd1e11bfcf07c Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Sun, 30 Jan 2022 20:24:57 +0100
Subject: [PATCH] Remove unused funtion

---
 src/ui/NhekoGlobalObject.cpp | 7 -------
 src/ui/NhekoGlobalObject.h   | 3 ---
 2 files changed, 10 deletions(-)

diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp
index 3d8d99591..3abcdf08d 100644
--- a/src/ui/NhekoGlobalObject.cpp
+++ b/src/ui/NhekoGlobalObject.cpp
@@ -9,7 +9,6 @@
 #include <QDesktopServices>
 #include <QStyle>
 #include <QUrl>
-#include <QWindow>
 
 #include "Cache_p.h"
 #include "ChatPage.h"
@@ -135,9 +134,3 @@ Nheko::openCreateRoomDialog() const
     MainWindow::instance()->openCreateRoomDialog(
       [](const mtx::requests::CreateRoom &req) { ChatPage::instance()->createRoom(req); });
 }
-
-void
-Nheko::reparent(QWindow *win) const
-{
-    win->setTransientParent(MainWindow::instance());
-}
diff --git a/src/ui/NhekoGlobalObject.h b/src/ui/NhekoGlobalObject.h
index 2679c6dfd..244938739 100644
--- a/src/ui/NhekoGlobalObject.h
+++ b/src/ui/NhekoGlobalObject.h
@@ -12,8 +12,6 @@
 #include "Theme.h"
 #include "UserProfile.h"
 
-class QWindow;
-
 class Nheko : public QObject
 {
     Q_OBJECT
@@ -55,7 +53,6 @@ public:
     Q_INVOKABLE void showUserSettingsPage() const;
     Q_INVOKABLE void logout() const;
     Q_INVOKABLE void openCreateRoomDialog() const;
-    Q_INVOKABLE void reparent(QWindow *win) const;
 
 public slots:
     void updateUserProfile();
-- 
GitLab