diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-06-17 16:24:34 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-06-17 16:24:34 +0000 |
commit | c1b3d305156969682faaa0b5026fb63aabb673df (patch) | |
tree | 0c3fb474285dcf442e4d20d21abb2803ab27dfd8 /src/PSEditModel.cxx | |
parent | 64a96164b0a793c8f6dd9f204018ebb54d0e025e (diff) |
remove Parser_1
remove Parser_1
Diffstat (limited to 'src/PSEditModel.cxx')
-rw-r--r-- | src/PSEditModel.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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; |