- Now easy to know the protocol name and iterate protocols.

- find_protocol doesn't handle the case the same protocols are stacked.

Signed-off-by: FUJITA Tomonori <[email protected]>
---
 ryu/lib/packet/packet.py |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/ryu/lib/packet/packet.py b/ryu/lib/packet/packet.py
index 9355340..71b1db3 100644
--- a/ryu/lib/packet/packet.py
+++ b/ryu/lib/packet/packet.py
@@ -52,11 +52,6 @@ class Packet(object):
     def add_protocol(self, proto):
         self.protocols.append(proto)
 
-    def find_protocol(self, name):
-        for p in self.protocols:
-            if p.__class__.__name__ == name:
-                return p
-
     def next(self):
         try:
             p = self.protocols[self.protocol_idx]
-- 
1.7.4.4


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to