From 447bc15875c664983f0992f6d355360467863d6d Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 29 Mar 2009 12:51:00 +0200 Subject: inline Hills::get_num() --- src/Hill.H | 2 +- src/Hill.cxx | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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) -- cgit v1.2.3