# HG changeset patch # User Mathieu Lacage # Date 1218129234 25200 # Node ID dacc57c5d31fef829016a91943bb8a08c56b3657 # Parent 88e9cee20461e03ae01e8ee07d0fbe23b0597047 remove Node::GetFirstApplication checked in changeset 38b8549b1ad3 by mistake. diff -r 88e9cee20461 -r dacc57c5d31f bindings/python/ns3_module_node.py --- a/bindings/python/ns3_module_node.py Wed Aug 06 11:37:52 2008 +0100 +++ b/bindings/python/ns3_module_node.py Thu Aug 07 10:13:54 2008 -0700 @@ -1671,10 +1671,6 @@ '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 -r 88e9cee20461 -r dacc57c5d31f src/node/node.cc --- a/src/node/node.cc Wed Aug 06 11:37:52 2008 +0100 +++ b/src/node/node.cc Thu Aug 07 10:13:54 2008 -0700 @@ -136,18 +136,6 @@ { 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 -r 88e9cee20461 -r dacc57c5d31f src/node/node.h --- a/src/node/node.h Wed Aug 06 11:37:52 2008 +0100 +++ b/src/node/node.h Thu Aug 07 10:13:54 2008 -0700 @@ -122,12 +122,6 @@ * 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.