Platform/PlatformWindow: remove make()
This commit is contained in:
parent
f5db354aec
commit
2de3bd93f7
2 changed files with 0 additions and 18 deletions
|
|
@ -2,23 +2,8 @@
|
|||
#include <Spectre/Window/Window.h>
|
||||
#include "PlatformWindow.h"
|
||||
|
||||
#ifdef SPECTRE_PLATFORM_WIN
|
||||
#include <Platform/Win32/Win32Window.h>
|
||||
typedef sp::Win32Window WindowType;
|
||||
#elif SPECTRE_PLATFORM_UNIX
|
||||
#include <Platform/Unix/X11Window.h>
|
||||
typedef sp::X11Window WindowType;
|
||||
#else
|
||||
#error "No Window implementation exists"
|
||||
#endif
|
||||
|
||||
namespace sp {
|
||||
|
||||
PlatformWindow* PlatformWindow::make(Window* owner)
|
||||
{
|
||||
return new WindowType(owner);
|
||||
}
|
||||
|
||||
PlatformWindow::PlatformWindow(Window* owner) :
|
||||
m_owner (owner)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@ class Window;
|
|||
class PlatformWindow
|
||||
{
|
||||
public :
|
||||
// Factory method.
|
||||
static PlatformWindow* make(Window* owner);
|
||||
|
||||
virtual ~PlatformWindow();
|
||||
|
||||
Window* getOwner();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue