Commit a079e096581d24d133eab254233b02c789fc8d17
1 parent
f50d6dc5
remove main() function
Showing
1 changed file
with
0 additions
and
31 deletions
src/ctselect/ctselect.cpp
| ... | ... | @@ -25,37 +25,6 @@ |
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | /***********************************************************************//** |
| 28 | - * @brief Main entry point | |
| 29 | - * | |
| 30 | - * @param[in] argc Number of arguments | |
| 31 | - * @param[in] argv Arguments | |
| 32 | - ***************************************************************************/ | |
| 33 | -int main (int argc, char *argv[]) | |
| 34 | -{ | |
| 35 | - // Initialise return code | |
| 36 | - int rc = 0; | |
| 37 | - | |
| 38 | - // Put all code in try-catch brackets to catch all errors | |
| 39 | - try { | |
| 40 | - | |
| 41 | - // Create instance of application | |
| 42 | - ctselect application(argc, argv); | |
| 43 | - | |
| 44 | - // Run application | |
| 45 | - rc = application.run(); | |
| 46 | - | |
| 47 | - } | |
| 48 | - catch (std::exception &e) { | |
| 49 | - std::cout << e.what() << std::endl; | |
| 50 | - rc = -1; | |
| 51 | - } | |
| 52 | - | |
| 53 | - // Return | |
| 54 | - return rc; | |
| 55 | -} | |
| 56 | - | |
| 57 | - | |
| 58 | -/***********************************************************************//** | |
| 59 | 28 | * @brief Application |
| 60 | 29 | ***************************************************************************/ |
| 61 | 30 | int ctselect::run(void) | ... | ... |