diff options
Diffstat (limited to 'src/Hill.cxx')
| -rw-r--r-- | src/Hill.cxx | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/src/Hill.cxx b/src/Hill.cxx index b0c738f..5bef0fd 100644 --- a/src/Hill.cxx +++ b/src/Hill.cxx @@ -1,5 +1,5 @@ // -// "$Id: Hill.cxx,v 1.6 2005/05/03 20:16:40 hofmann Exp $" +// "$Id: Hill.cxx,v 1.7 2005/05/03 20:32:20 hofmann Exp $" // // PSEditWidget routines. // @@ -35,8 +35,6 @@ Mountain::Mountain(const char *n, double p, double l, double h) { alph = 0.0; x = 0; y = 0; - next = NULL; - next_visible = NULL; } Mountain::Mountain(int x_tmp, int y_tmp) { @@ -47,54 +45,14 @@ Mountain::Mountain(int x_tmp, int y_tmp) { alph = 0.0; x = x_tmp; y = y_tmp; - next = NULL; - next_visible = NULL; } Mountain::~Mountain() { - if (next) { - delete(next); - } - if (name) { free(name); } } -void -Mountain::append(Mountain *m) { - if (next) { - next->append(m); - } else { - next = m; - } -} - -Mountain * -Mountain::get_next() { - return next; -} - -void -Mountain::append_visible(Mountain *m) { - if (next_visible) { - next->append_visible(m); - } else { - next_visible = m; - } -} - -Mountain * -Mountain::get_next_visible() { - return next_visible; -} - -void -Mountain::clear_next_visible() { - next_visible = NULL; -} - - Mountains::Mountains() { fprintf(stderr, "===>huhu\n"); |
