Skip to content

Commit 25f6b76

Browse files
committed
Cleanup comments and remove unused components
1 parent a89688c commit 25f6b76

File tree

9 files changed

+1
-227
lines changed

9 files changed

+1
-227
lines changed

CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ include(cmake/CompilerWarnings.cmake)
5252

5353
#! Prepare libraries
5454
# Boost
55-
find_package(Boost 1.71.0 COMPONENTS program_options system REQUIRED)
56-
#set(Boost_USE_STATIC_LIBS OFF) # enable dynamic linking
57-
#set(Boost_USE_MULTITHREAD ON) # enable maltreating
55+
find_package(Boost 1.71.0 COMPONENTS system REQUIRED)
5856
set(BOOST_KEY_WORD boost_lib)
5957

6058
# Standard Threads
@@ -78,9 +76,6 @@ set(COMMON_SRC
7876
include/common/thread_safe_queue.h
7977
include/common/thread_safe_radio_queue.h
8078
)
81-
set(OPTION_PARSER_SRC
82-
src/options_parser/options_parser.cpp include/options_parser/options_parser.h
83-
)
8479

8580
#! Specify targets
8681
set(SERVER_TARGETS
@@ -152,7 +147,6 @@ foreach (TARGET ${SERVER_TARGETS})
152147
DESTINATION bin)
153148
endforeach ()
154149

155-
156150
# Define ALL_TARGETS variable to use in PVS and Sanitizers
157151
set(ALL_TARGETS ${SERVER_TARGETS})
158152

include/common/defines.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#define SERVER_LISTEN_BACKLOG_SIZE (10000)
1414
#define SERVER_EXPECT_CONNECTIONS (11000)
1515

16-
#define SERVER_MSG_PREFIX ("[server] ")
1716
#define SERVER_DEFAULT_LOG_DIR ("./logs")
1817

1918
#define STATUS_SUCCESS (0)

include/echo_server_simple.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// This is a personal academic project. Dear PVS-Studio, please check it.
2-
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
3-
41
#ifndef ECHO_SERVER_SIMPLE_ECHO_SERVER_SIMPLE_H
52
#define ECHO_SERVER_SIMPLE_ECHO_SERVER_SIMPLE_H
63

include/options_parser/options_parser.h

Lines changed: 0 additions & 42 deletions
This file was deleted.

include_notes.md

Lines changed: 0 additions & 114 deletions
This file was deleted.

main.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
1-
// This is a personal academic project. Dear PVS-Studio, please check it.
2-
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
3-
41
#include <iostream>
52
#include "common/logging.h"
63
#include "common/socket.h"
74
#include "common/defines.h"
85

96
#ifdef ECHO_SERVER_SIMPLE
10-
117
#include "echo_server_simple.h"
128

139
#elif ECHO_SERVER_SIMPLE_THREADED
1410
#include "echo_server_simple_threaded.h"
1511

1612
#elif ECHO_SERVER_CUSTOM_THREAD_POOL
17-
1813
#include "echo_server_custom_thread_pool.h"
1914

2015
#elif ECHO_SERVER_BOOST_ASIO
21-
2216
#include "echo_server_boost_asio.h"
2317

2418
#elif ECHO_SERVER_BOOST_ASIO_THREADED
25-
2619
#include "echo_server_boost_asio_threaded.h"
2720

2821
#endif

src/common/io.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
//
2-
// Created by fenix on 05.04.2022.
3-
//
4-
51
#include "common/io.h"
62
#include <arpa/inet.h>
73
#include <unistd.h>

src/echo_server_simple.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// This is a personal academic project. Dear PVS-Studio, please check it.
2-
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
3-
41
#include "echo_server_simple.h"
52
#include <iostream>
63
#include <unistd.h>

src/options_parser/options_parser.cpp

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)