From ca9fa77d5d34a993073cd5256d65f88cd2e1a28f Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 26 Apr 2015 15:38:09 +0200 Subject: [PATCH] cmDefinitions: Inline GetClosureKeys implementation. --- Source/cmDefinitions.cxx | 8 +------- Source/cmDefinitions.h | 4 ---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx index a6f46e2ea..4b0eed459 100644 --- a/Source/cmDefinitions.cxx +++ b/Source/cmDefinitions.cxx @@ -123,14 +123,7 @@ std::set cmDefinitions::ClosureKeys() const { std::set defined; std::set undefined; - this->ClosureKeys(defined, undefined); - return defined; -} -//---------------------------------------------------------------------------- -void cmDefinitions::ClosureKeys(std::set& defined, - std::set& undefined) const -{ cmDefinitions const* up = this; while (up) @@ -149,4 +142,5 @@ void cmDefinitions::ClosureKeys(std::set& defined, } up = up->Up; } + return defined; } diff --git a/Source/cmDefinitions.h b/Source/cmDefinitions.h index d21ec23f1..950970bb4 100644 --- a/Source/cmDefinitions.h +++ b/Source/cmDefinitions.h @@ -86,10 +86,6 @@ private: cmDefinitions(ClosureTag const&, cmDefinitions const* root); void ClosureImpl(std::set& undefined, cmDefinitions const* defs); - - // Implementation of ClosureKeys() method. - void ClosureKeys(std::set& defined, - std::set& undefined) const; }; #endif