Skip to content

Commit 829d84f

Browse files
committed
removed redundant parts
1 parent ad075ab commit 829d84f

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/server.cpp

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
#include "Logger.h"
33
#include "cargs.h"
44

5-
#define DMDSERVER_MAX_WIDTH 256
6-
#define DMDSERVER_MAX_HEIGHT 64
7-
85
using namespace std;
96

10-
DMDUtil::DMD* pDmd;
11-
vector<uint32_t> threads;
127
bool opt_verbose = false;
138
bool opt_fixedAltColorPath = false;
149
bool opt_fixedPupPath = false;
@@ -121,18 +116,7 @@ int main(int argc, char* argv[])
121116
}
122117
}
123118

124-
sockpp::initialize();
125-
if (opt_verbose)
126-
DMDUtil::Log(DMDUtil_LogLevel_INFO, "Opening DMDServer, listening for TCP connections on %s:%d",
127-
pConfig->GetDMDServerAddr(), pConfig->GetDMDServerPort());
128-
sockpp::tcp_acceptor acc({pConfig->GetDMDServerAddr(), (in_port_t)pConfig->GetDMDServerPort()});
129-
if (!acc)
130-
{
131-
DMDUtil::Log(DMDUtil_LogLevel_INFO, "Error creating the DMDServer acceptor: %s", acc.last_error_str().c_str());
132-
return 1;
133-
}
134-
135-
pDmd = new DMDUtil::DMD();
119+
DMDUtil::DMD* pDmd = new DMDUtil::DMD();
136120

137121
while (true)
138122
{

0 commit comments

Comments
 (0)