diff --git a/src/server/server.cpp b/src/server/server.cpp index 949816a..4461573 100644 --- a/src/server/server.cpp +++ b/src/server/server.cpp @@ -136,7 +136,6 @@ void setupDB() { std::string nAuctions = std::to_string(count); nAuctions += "\n"; write_to_file(nextAuctionFile, nAuctions); - }; void wait_for_udp_packet(AuctionServerState &state) { diff --git a/src/server/server_auction.cpp b/src/server/server_auction.cpp index 14ae9e7..c90bdf9 100644 --- a/src/server/server_auction.cpp +++ b/src/server/server_auction.cpp @@ -64,7 +64,6 @@ std::string AuctionManager::getnextAuctionID() { } } - void validateOpenAuctionArgs(std::string userID, std::string password, std::string auctionName, uint32_t startValue, uint32_t timeActive, std::string assetFilename, diff --git a/src/server/server_auction.hpp b/src/server/server_auction.hpp index e99570b..0f47067 100644 --- a/src/server/server_auction.hpp +++ b/src/server/server_auction.hpp @@ -40,7 +40,6 @@ class AuctionManager { ~AuctionManager() = default; }; - void validateOpenAuctionArgs(std::string userID, std::string password, std::string auctionName, uint32_t startValue, uint32_t timeActive, std::string assetFilename, diff --git a/src/utils/protocol.cpp b/src/utils/protocol.cpp index b893c2f..7d9aee6 100644 --- a/src/utils/protocol.cpp +++ b/src/utils/protocol.cpp @@ -666,8 +666,7 @@ std::string generateUniqueIdentifier() { return unique_identifier; } -std::string TcpPacket::readAndSaveToFile(const int fd, - std::string &file_name, +std::string TcpPacket::readAndSaveToFile(const int fd, std::string &file_name, const size_t file_size, bool flag) { if (flag) { std::string filepath = generateUniqueIdentifier();