Remove unused WindowManager class

This commit is contained in:
Jaidyn Ann 2021-05-31 16:08:50 -05:00
parent 91d5b4e0dc
commit 2143de94c1
4 changed files with 0 additions and 63 deletions

View File

@ -20,7 +20,6 @@
#include "ProtocolManager.h"
#include "Server.h"
#include "TheApp.h"
#include "WindowsManager.h"
Conversation::Conversation(BString id, BMessenger msgn)

View File

@ -51,7 +51,6 @@ SRCS = \
application/Server.cpp \
application/TheApp.cpp \
application/User.cpp \
application/WindowsManager.cpp \
application/preferences/AccountDialog.cpp \
application/preferences/AccountListItem.cpp \
application/preferences/AccountView.cpp \

View File

@ -1,36 +0,0 @@
/*
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Andrea Anzani, andrea.anzani@gmail.com
*/
#include "WindowsManager.h"
WindowsManager* WindowsManager::fInstance = NULL;
WindowsManager::WindowsManager()
{
fCurrentPoint.Set(20.0f, 20.0f);
}
WindowsManager*
WindowsManager::Get()
{
if (!fInstance)
fInstance = new WindowsManager();
return fInstance;
}
void
WindowsManager::RelocateWindow(BWindow* window)
{
window->SetWorkspaces(B_CURRENT_WORKSPACE);
window->MoveTo(fCurrentPoint);
fCurrentPoint += BPoint(20.0f, 20.0f);
}

View File

@ -1,25 +0,0 @@
/*
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _WINDOWS_MANAGER_H_
#define _WINDOWS_MANAGER_H_
#include <Window.h>
#include <Point.h>
class WindowsManager
{
public:
static WindowsManager* Get();
void RelocateWindow(BWindow* window);
private:
WindowsManager();
static WindowsManager* fInstance;
BPoint fCurrentPoint;
};
#endif // _WINDOWS_MANAGER_H_