Remove lsh_object stuff from lshcontext

This commit is contained in:
Brendan Shanks 2018-05-31 12:14:06 -07:00
parent b545990164
commit e3ceb20ccd
2 changed files with 0 additions and 16 deletions

View File

@ -40,11 +40,6 @@ typedef struct lshcontext {
long _gConsoleOutBufMax;
char _gConsoleOutBuf[CONSOLEBUFSIZE];
struct lsh_object *_all_objects;
unsigned _number_of_objects;
unsigned _number_of_strings;
unsigned _live_objects;
int _quiet_flag;
int _verbose_flag;
int _trace_flag;
@ -75,13 +70,6 @@ typedef struct lshcontext {
extern pthread_key_t ssh2threadkey;
#define all_objects (((lshcontext *)pthread_getspecific(ssh2threadkey))->_all_objects)
#define number_of_objects (((lshcontext *)pthread_getspecific(ssh2threadkey))->_number_of_objects)
#define number_of_strings (((lshcontext *)pthread_getspecific(ssh2threadkey))->_number_of_strings)
#define live_objects (((lshcontext *)pthread_getspecific(ssh2threadkey))->_live_objects)
#define quiet_flag (((lshcontext *)pthread_getspecific(ssh2threadkey))->_quiet_flag)
#define verbose_flag (((lshcontext *)pthread_getspecific(ssh2threadkey))->_verbose_flag)
#define trace_flag (((lshcontext *)pthread_getspecific(ssh2threadkey))->_trace_flag)

View File

@ -1072,10 +1072,6 @@ void init_context(lshcontext *context, short port)
context->_gConsoleInBufMax = CONSOLEBUFSIZE;
context->_gConsoleOutBufLen = 0;
context->_gConsoleOutBufMax = CONSOLEBUFSIZE;
context->_all_objects = NULL;
context->_number_of_objects = 0;
context->_number_of_strings = 0;
context->_live_objects = 0;
context->_quiet_flag = 0;
context->_verbose_flag = 0;
context->_trace_flag = 0;