Skip to content

Commit a647f21

Browse files
committed
made constructor of Application protected and removed unused constructor
1 parent 7d5bd27 commit a647f21

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

src/application.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ Application::Application(
1111
m_renderer{ m_window },
1212
m_command_line_arguments{ std::move(command_line_arguments) } { }
1313

14-
Application::Application(
15-
const std::string& title,
16-
int x,
17-
int y,
18-
int width,
19-
int height,
20-
CommandLineArguments command_line_arguments
21-
)
22-
: m_window{ title, x, y, width, height },
23-
m_renderer{ m_window },
24-
m_command_line_arguments{ std::move(command_line_arguments) } { }
25-
2614
void Application::run() {
2715
const auto start_time = elapsed_time();
2816
s_num_steps_simulated = 0;

src/application.hpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,16 @@ struct Application : public EventListener {
2020
protected:
2121
EventDispatcher m_event_dispatcher;
2222

23-
public:
23+
protected:
2424
Application(
2525
const std::string& title,
2626
WindowPosition position,
2727
int width,
2828
int height,
2929
CommandLineArguments command_line_arguments
3030
);
31-
Application(
32-
const std::string& title,
33-
int x,
34-
int y,
35-
int width,
36-
int height,
37-
CommandLineArguments command_line_arguments
38-
);
31+
32+
public:
3933
Application(const Application&) = delete;
4034
Application& operator=(const Application&) = delete;
4135

0 commit comments

Comments
 (0)