fix -Werror,-Wunused-function

Change-Id: Idb339471edf9f80f779b50a124098ab056d1a2fc
This commit is contained in:
Miklos Vajna 2018-02-26 16:08:36 +01:00
parent d7ff0b0bb2
commit 56fd92b4eb

View file

@ -195,6 +195,7 @@ static int careerSpanMs = 0;
namespace
{
#if ENABLE_SUPPORT_KEY
inline void shutdownLimitReached(WebSocketHandler& ws)
{
const std::string error = Poco::format(PAYLOAD_UNAVAILABLE_LIMIT_REACHED, LOOLWSD::MaxDocuments, LOOLWSD::MaxConnections);
@ -213,6 +214,7 @@ inline void shutdownLimitReached(WebSocketHandler& ws)
LOG_ERR("Error while shuting down socket on reaching limit: " << ex.what());
}
}
#endif
inline void infoLimitReached(const WebSocketHandler* ws)
{