From: Justin Pettit <jpettit@nicira.com>
Date: Wed, 8 Jul 2009 21:51:47 +0000 (-0700)
Subject: vswitchd: Remove non-used function to prevent compiler warnings
X-Git-Tag: v0.90.5~87
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5a4baac6c28485838ca4059f6fda33b23e62f267;p=sliver-openvswitch.git

vswitchd: Remove non-used function to prevent compiler warnings

The function send_ofmp_error_msg() is not currently used, so it was
producing compiler warnings that it was defined.  Remove the function
until it's needed.
---

diff --git a/vswitchd/mgmt.c b/vswitchd/mgmt.c
index 45c358024..e2cc4f1f8 100644
--- a/vswitchd/mgmt.c
+++ b/vswitchd/mgmt.c
@@ -526,20 +526,6 @@ send_config_update_ack(uint32_t xid, bool success)
     send_openflow_buffer(buffer);
 }
 
-static void
-send_ofmp_error_msg(uint32_t xid, uint16_t type, uint16_t code, 
-            const void *data, size_t len)
-{
-    struct ofpbuf *buffer;
-    struct ofmp_error_msg *oem;
-
-    oem = make_ofmp_xid(sizeof(*oem)+len, OFMPT_ERROR, xid, &buffer);
-    oem->type = htons(type);
-    oem->code = htons(code);
-    memcpy(oem->data, data, len);
-    send_openflow_buffer(buffer);
-}
-
 static void
 send_error_msg(uint32_t xid, uint16_t type, uint16_t code, 
             const void *data, size_t len)