Browse Source

Remove unneeded context field from shell structure

git-svn-id: https://klish.googlecode.com/svn/trunk@400 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
0dcaad88e0
2 changed files with 0 additions and 11 deletions
  1. 0 8
      clish/shell/private.h
  2. 0 3
      clish/shell/shell_new.c

+ 0 - 8
clish/shell/private.h

@@ -35,13 +35,6 @@ typedef struct {
 	char *viewid;
 } clish_shell_pwd_t;
 
-/*
- * The context structure
- */
-struct clish_context_s {
-	clish_shell_iterator_t iter; /* used for iterating commands */
-};
-
 struct clish_shell_s {
 	lub_bintree_t view_tree;	/* Maintain a tree of views      */
 	lub_bintree_t ptype_tree;	/* Maintain a tree of ptypes     */
@@ -60,7 +53,6 @@ struct clish_shell_s {
 	konf_client_t *client;
 	char * lockfile;
 	pthread_t pthread;
-	clish_context_t context;
 	char * default_shebang;
 	char * fifo_name; /* The name of temporary fifo file. */
 	bool_t interactive; /* Is shell interactive. */

+ 0 - 3
clish/shell/shell_new.c

@@ -75,9 +75,6 @@ clish_shell_init(clish_shell_t * this,
 		"Interactive flag", tmp_ptype);
 	clish_param__set_hidden(this->param_interactive, BOOL_TRUE);
 
-	/* Initialize context */
-	clish_shell_iterator_init(&this->context.iter, CLISH_NSPACE_NONE);
-
 	/* Push non-NULL istream */
 	if (istream)
 		clish_shell_push_fd(this, istream, stop_on_error);