Remove CLI service modes

The modes weren't used and provided access to raw memory which is not
safe.
This commit is contained in:
Markus Mäkelä
2016-12-22 11:05:29 +02:00
parent 7cbd62db52
commit 2bdda586f7
4 changed files with 1 additions and 36 deletions

View File

@ -140,7 +140,6 @@ createInstance(SERVICE *service, char **options)
inst->service = service;
spinlock_init(&inst->lock);
inst->sessions = NULL;
inst->mode = CLIM_USER;
if (options)
{
@ -190,7 +189,6 @@ newSession(ROUTER *instance, SESSION *session)
spinlock_release(&inst->lock);
session->state = SESSION_STATE_READY;
client->mode = inst->mode;
return (void *)client;
}