From c1b3d305156969682faaa0b5026fb63aabb673df Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 17 Jun 2005 16:24:34 +0000 Subject: remove Parser_1 remove Parser_1 --- src/PSEditModel.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/PSEditModel.cxx') diff --git a/src/PSEditModel.cxx b/src/PSEditModel.cxx index e0028ce..3906ab6 100644 --- a/src/PSEditModel.cxx +++ b/src/PSEditModel.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditModel.cxx,v 1.14 2005/06/17 18:20:42 hofmann Exp $" +// "$Id: PSEditModel.cxx,v 1.15 2005/06/17 18:24:34 hofmann Exp $" // // PSEditWidget routines. // @@ -256,7 +256,6 @@ int PSEditModel::load(FILE *fp) { char tmpname[256]; char linebuf[1024]; ssize_t ret; - PSParser *p1 = new PSParser_1(this); PSParser *p2 = new PSParser_2(this); int tmp_fd; @@ -271,7 +270,7 @@ int PSEditModel::load(FILE *fp) { clear(); while (fgets(linebuf, sizeof(linebuf), fp) != NULL) { - if (!p2->parse(linebuf) && !p1->parse(linebuf)) { + if (!p2->parse(linebuf)) { ret = write(tmp_fd, linebuf, strlen(linebuf)); if (ret != strlen(linebuf)) { fprintf(stderr, "Error while writing to temporary file\n"); @@ -281,7 +280,6 @@ int PSEditModel::load(FILE *fp) { lseek(tmp_fd, 0L, SEEK_SET); - delete(p1); delete(p2); return tmp_fd; -- cgit v1.2.3