From 7253ffee27f6cae34e63a72b2d3d10db10571ecc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 31 Mar 2016 10:59:45 +0200 Subject: Clean up variable lookup interfaces --- build2/variable.ixx | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'build2/variable.ixx') diff --git a/build2/variable.ixx b/build2/variable.ixx index a4d7dc3..ee0f647 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -104,15 +104,8 @@ namespace build2 } template - inline T& - cast (const lookup& l) - { - return cast (*l); - } - - template inline const T& - cast (const lookup& l) + cast (const lookup& l) { return cast (*l); } @@ -132,15 +125,8 @@ namespace build2 } template - inline T* - cast_null (const lookup& l) - { - return l ? &cast (*l) : nullptr; - } - - template inline const T* - cast_null (const lookup& l) + cast_null (const lookup& l) { return l ? &cast (*l) : nullptr; } -- cgit v1.1