Skip to content

Commit 92e3796

Browse files
committed
clean up unnecessary code
1 parent 0a30a11 commit 92e3796

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

main/src/App.cpp

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,12 @@
66
// Copyright © 2018 oatpp. All rights reserved.
77
//
88

9-
//#define OATPP_USE_TARGET
10-
//#define OATPP_TARGET_TEST
11-
12-
//////////////////////////////////
13-
// App
14-
159
#include "./controller/MyController.hpp"
1610
#include "./AppComponent.hpp"
1711
#include "./Logger.hpp"
1812

19-
//////////////////////////////////
20-
// Test
21-
22-
#ifdef OATPP_TARGET_TEST
23-
#endif
24-
25-
//////////////////////////////////
26-
// oatpp
27-
2813
#include "oatpp/network/server/Server.hpp"
2914

30-
//////////////////////////////////
31-
// std
32-
3315
#include <iostream>
3416

3517
/**
@@ -46,8 +28,8 @@ void run() {
4628

4729
auto router = components.httpRouter.getObject();
4830

49-
auto MyController = MyController::createShared();
50-
MyController->addEndpointsToRouter(router);
31+
auto myController = MyController::createShared();
32+
myController->addEndpointsToRouter(router);
5133

5234
/* create server */
5335

@@ -67,13 +49,8 @@ int main(int argc, const char * argv[]) {
6749

6850
oatpp::base::Environment::setLogger(new Logger());
6951
oatpp::base::Environment::init();
70-
71-
#if !defined(OATPP_USE_TARGET) | defined(OATPP_TARGET_APP)
52+
7253
run();
73-
#endif
74-
75-
#ifdef OATPP_TARGET_TEST
76-
#endif
7754

7855
oatpp::base::Environment::setLogger(nullptr); ///< free Logger
7956

0 commit comments

Comments
 (0)