From 29151f4ec29ce0725cd5df747c4f3734fe2f5b04 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Thu, 7 Aug 2008 10:13:54 -0700 Subject: [PATCH] remove Node::GetFirstApplication checked in changeset 38b8549b1ad3 by mistake. --- bindings/python/ns3_module_node.py | 4 ---- src/node/node.cc | 12 ------------ src/node/node.h | 6 ------ 3 files changed, 22 deletions(-) diff --git a/bindings/python/ns3_module_node.py b/bindings/python/ns3_module_node.py index bb904c61f..9da36ef71 100644 --- a/bindings/python/ns3_module_node.py +++ b/bindings/python/ns3_module_node.py @@ -1671,10 +1671,6 @@ def register_Ns3Node_methods(root_module, cls): 'ns3::Ptr< ns3::Application >', [param('uint32_t', 'index')], is_const=True) - ## node.h: ns3::Ptr ns3::Node::GetFirstApplication(ns3::TypeId tid) [member function] - cls.add_method('GetFirstApplication', - 'ns3::Ptr< ns3::Application >', - [param('ns3::TypeId', 'tid')]) ## node.h: uint32_t ns3::Node::GetNApplications() const [member function] cls.add_method('GetNApplications', 'uint32_t', diff --git a/src/node/node.cc b/src/node/node.cc index aef5ac798..1ad596488 100644 --- a/src/node/node.cc +++ b/src/node/node.cc @@ -136,18 +136,6 @@ Node::GetNApplications (void) const { return m_applications.size (); } -Ptr -Node::GetFirstApplication(TypeId tid) -{ - for (std::vector >::iterator i = m_applications.begin (); - i != m_applications.end (); i++) { - Ptr app = *i; - if (app->GetInstanceTypeId() == tid) - return app; - } - - return 0; -} void Node::DoDispose() diff --git a/src/node/node.h b/src/node/node.h index 1f9d814a5..5f09e66be 100644 --- a/src/node/node.h +++ b/src/node/node.h @@ -122,12 +122,6 @@ public: * within this Node. */ Ptr GetApplication (uint32_t index) const; - /** - * \param index - * \returns the application associated to this requested index - * within this Node. - */ - Ptr GetFirstApplication (TypeId tid); /** * \returns the number of applications associated to this Node.