summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 12:51:00 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 12:51:00 +0200
commit447bc15875c664983f0992f6d355360467863d6d (patch)
treedcd85bb1e91b2afc545709ea8d7654ce9b654f5c /src
parent9bceb553121f7ca130223b59ab6fc243ec850038 (diff)
inline Hills::get_num()
Diffstat (limited to 'src')
-rw-r--r--src/Hill.H2
-rw-r--r--src/Hill.cxx5
2 files changed, 1 insertions, 6 deletions
diff --git a/src/Hill.H b/src/Hill.H
index 225e507..fb02feb 100644
--- a/src/Hill.H
+++ b/src/Hill.H
@@ -56,7 +56,7 @@ class Hills {
void clear();
void clobber();
int contains(const Hill *m) const;
- int get_num() const;
+ inline int get_num() const { return num; };
Hill *get(int n) const;
};
diff --git a/src/Hill.cxx b/src/Hill.cxx
index 6404ec8..f4ba112 100644
--- a/src/Hill.cxx
+++ b/src/Hill.cxx
@@ -289,11 +289,6 @@ Hills::clobber() {
clear();
}
-int
-Hills::get_num() const {
- return num;
-}
-
Hill *
Hills::get(int n) const {
if (n < 0 || n >= num)