diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-29 12:51:00 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-29 12:51:00 +0200 |
commit | 447bc15875c664983f0992f6d355360467863d6d (patch) | |
tree | dcd85bb1e91b2afc545709ea8d7654ce9b654f5c | |
parent | 9bceb553121f7ca130223b59ab6fc243ec850038 (diff) |
inline Hills::get_num()
-rw-r--r-- | src/Hill.H | 2 | ||||
-rw-r--r-- | src/Hill.cxx | 5 |
2 files changed, 1 insertions, 6 deletions
@@ -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) |