Browse Source

Remove unneeded code

git-svn-id: https://klish.googlecode.com/svn/trunk@199 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
af681b3e49
2 changed files with 0 additions and 17 deletions
  1. 0 6
      bin/konfd.c
  2. 0 11
      clish/clish_config_callback.c

+ 0 - 6
bin/konfd.c

@@ -120,12 +120,6 @@ int main(int argc, char **argv)
 		if (0 == num)
 			continue;
 
-		/* Get string from stdout */
-/*		if (!fgets(str, sizeof(str), stdin)) {
-			enough = 1;
-			continue;
-		}
-*/
 		/* Service all the sockets with input pending. */
 		for (i = 0; i < FD_SETSIZE; ++i) {
 			if (FD_ISSET(i, &read_fd_set)) {

+ 0 - 11
clish/clish_config_callback.c

@@ -151,17 +151,6 @@ clish_config_callback(const clish_shell_t * this,
 	switch (op) {
 
 	case CLISH_CONFIG_DUMP:
-		str = clish_command__get_file(cmd, viewid, pargv);
-		if (str) {
-			FILE *fd = fopen(str, "r");
-			lub_string_free(str);
-			if (!fd)
-				break;
-			while (fgets(tmp, sizeof(tmp), fd))
-				fprintf(clish_shell__get_ostream(this),
-					"%s", tmp);
-			fclose(fd);
-		}
 		if (buf) {
 			konf_buf_lseek(buf, 0);
 			while ((str = konf_buf_preparse(buf))) {