diff liboctave/cmd-hist.cc @ 3522:bd422cf62f0c

[project @ 2000-02-02 06:29:21 by jwe]
author jwe
date Wed, 02 Feb 2000 06:32:04 +0000
parents 957d7d6ab0e0
children b79da8779a0e
line wrap: on
line diff
--- a/liboctave/cmd-hist.cc
+++ b/liboctave/cmd-hist.cc
@@ -541,8 +541,7 @@
 void
 command_history::read (bool must_exist)
 {
-  if (instance_ok ())
-    instance->do_read (must_exist);
+  read (file (), must_exist);
 }
 
 void
@@ -555,8 +554,7 @@
 void
 command_history::read_range (int from, int to, bool must_exist)
 {
-  if (instance_ok ())
-    instance->do_read_range (from, to, must_exist);
+  read_range (file (), from, to, must_exist);
 }
 
 void
@@ -720,12 +718,6 @@
 }
 
 void
-command_history::do_read (bool must_exist)
-{
-  do_read (xfile, must_exist);
-}
-
-void
 command_history::do_read (const std::string& f, bool)
 {
   if (f.empty ())
@@ -733,12 +725,6 @@
 }
 
 void
-command_history::do_read_range (int from, int to, bool must_exist)
-{
-  do_read_range (xfile, from, to, must_exist);
-}
-
-void
 command_history::do_read_range (const std::string& f, int, int, bool)
 {
   if (f.empty ())