summaryrefslogtreecommitdiff
path: root/src/Hill.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-05-03 18:32:20 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-05-03 18:32:20 +0000
commite9f115b61a45ecd1d780032fc03f6da6b24e9b1b (patch)
treeed9bcb665be610fa3cd733d5937d0c8153dd555e /src/Hill.cxx
parentea841707d7403224065239fe4f382c3407e1ca46 (diff)
cleanups
cleanups
Diffstat (limited to 'src/Hill.cxx')
-rw-r--r--src/Hill.cxx44
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");