summaryrefslogtreecommitdiff
path: root/src/PSEditor.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-06-17 16:24:34 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-06-17 16:24:34 +0000
commitc1b3d305156969682faaa0b5026fb63aabb673df (patch)
tree0c3fb474285dcf442e4d20d21abb2803ab27dfd8 /src/PSEditor.cxx
parent64a96164b0a793c8f6dd9f204018ebb54d0e025e (diff)
remove Parser_1
remove Parser_1
Diffstat (limited to 'src/PSEditor.cxx')
-rw-r--r--src/PSEditor.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/PSEditor.cxx b/src/PSEditor.cxx
index 54875c1..665adfc 100644
--- a/src/PSEditor.cxx
+++ b/src/PSEditor.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditor.cxx,v 1.24 2005/02/07 17:54:03 hofmann Exp $"
+// "$Id: PSEditor.cxx,v 1.25 2005/06/17 18:24:34 hofmann Exp $"
//
// PSEditor routines.
//
@@ -181,7 +181,6 @@ int PSEditor::save(const char* savefile) {
int PSEditor::import(char *f) {
FILE *fp;
char linebuf[1024];
- PSParser *p1;
PSParser *p2;
if (!file_loaded()) {
@@ -194,15 +193,11 @@ int PSEditor::import(char *f) {
return 1;
}
- p1 = new PSParser_1(model);
p2 = new PSParser_2(model);
while (fgets(linebuf, 1024, fp) != NULL) {
- if (!p2->parse(linebuf)) {
- p1->parse(linebuf);
- }
+ p2->parse(linebuf);
}
- delete(p1);
delete(p2);
mod = 1;