From 0c59c675bedfa53fc54ebaf8343f50cbee39a355 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 30 Apr 2012 13:59:54 +0200 Subject: [PATCH] Cleaned up demo component. --- components/demo/democomponent.cpp | 5 ----- components/demo/democomponent.h | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/components/demo/democomponent.cpp b/components/demo/democomponent.cpp index 2af4a1470..1ac38d955 100644 --- a/components/demo/democomponent.cpp +++ b/components/demo/democomponent.cpp @@ -2,11 +2,6 @@ using namespace icinga; -IcingaApplication::Ptr DemoComponent::GetIcingaApplication(void) -{ - return static_pointer_cast(GetApplication()); -} - string DemoComponent::GetName(void) const { return "democomponent"; diff --git a/components/demo/democomponent.h b/components/demo/democomponent.h index 51d88336a..f4087382e 100644 --- a/components/demo/democomponent.h +++ b/components/demo/democomponent.h @@ -4,14 +4,12 @@ namespace icinga { -class DemoComponent : public Component +class DemoComponent : public IcingaComponent { private: Timer::Ptr m_DemoTimer; VirtualEndpoint::Ptr m_DemoEndpoint; - IcingaApplication::Ptr GetIcingaApplication(void); - int DemoTimerHandler(const TimerEventArgs& tea); int NewEndpointHandler(const NewEndpointEventArgs& neea); int HelloWorldRequestHandler(const NewRequestEventArgs& nrea);