Skip to content

Commit

Permalink
Remove unused variables and functions.
Browse files Browse the repository at this point in the history
Found by Clang.

Signed-off-by: Jarno Rajahalme <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Ethan Jackson <[email protected]>
  • Loading branch information
Jarno Rajahalme authored and blp committed Sep 27, 2013
1 parent b136128 commit 6e274d4
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 375 deletions.
335 changes: 0 additions & 335 deletions lib/aes128.c

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions lib/dpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ COVERAGE_DEFINE(dpif_flow_flush);
COVERAGE_DEFINE(dpif_flow_get);
COVERAGE_DEFINE(dpif_flow_put);
COVERAGE_DEFINE(dpif_flow_del);
COVERAGE_DEFINE(dpif_flow_query_list);
COVERAGE_DEFINE(dpif_flow_query_list_n);
COVERAGE_DEFINE(dpif_execute);
COVERAGE_DEFINE(dpif_purge);

Expand Down
3 changes: 0 additions & 3 deletions lib/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
#include "openflow/openflow.h"
#include "packets.h"
#include "unaligned.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(flow);

COVERAGE_DEFINE(flow_extract);
COVERAGE_DEFINE(miniflow_malloc);
Expand Down
1 change: 0 additions & 1 deletion lib/lockfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
VLOG_DEFINE_THIS_MODULE(lockfile);

COVERAGE_DEFINE(lockfile_lock);
COVERAGE_DEFINE(lockfile_timeout);
COVERAGE_DEFINE(lockfile_error);
COVERAGE_DEFINE(lockfile_unlock);

Expand Down
3 changes: 0 additions & 3 deletions lib/mac-learning.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
#include "unaligned.h"
#include "util.h"
#include "vlan-bitmap.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(mac_learning);

COVERAGE_DEFINE(mac_learning_learned);
COVERAGE_DEFINE(mac_learning_expired);
Expand Down
4 changes: 0 additions & 4 deletions lib/match.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
#include "dynamic-string.h"
#include "ofp-util.h"
#include "packets.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(match);


/* Converts the flow in 'flow' into a match in 'match', with the given
* 'wildcards'. */
Expand Down
1 change: 0 additions & 1 deletion lib/netlink-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ VLOG_DEFINE_THIS_MODULE(netlink_socket);
COVERAGE_DEFINE(netlink_overflow);
COVERAGE_DEFINE(netlink_received);
COVERAGE_DEFINE(netlink_recv_jumbo);
COVERAGE_DEFINE(netlink_send);
COVERAGE_DEFINE(netlink_sent);

/* Linux header file confusion causes this to be undefined. */
Expand Down
3 changes: 0 additions & 3 deletions lib/ofp-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
#include "packets.h"
#include "socket-util.h"
#include "vconn.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(ofp_parse);

/* Parses 'str' as an 8-bit unsigned integer into '*valuep'.
*
Expand Down
5 changes: 1 addition & 4 deletions lib/ofp-version-opt.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#include <config.h>
#include "dynamic-string.h"
#include "ofp-util.h"
#include "ofp-version-opt.h"
#include "ovs-thread.h"
#include "vlog.h"
#include "dynamic-string.h"

VLOG_DEFINE_THIS_MODULE(ofp_version);

static uint32_t allowed_versions = 0;

Expand Down
1 change: 0 additions & 1 deletion lib/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

VLOG_DEFINE_THIS_MODULE(process);

COVERAGE_DEFINE(process_sigchld);
COVERAGE_DEFINE(process_start);

struct process {
Expand Down
3 changes: 0 additions & 3 deletions lib/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
#include "poll-loop.h"
#include "random.h"
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(stream);

COVERAGE_DEFINE(pstream_open);
COVERAGE_DEFINE(stream_open);
Expand Down
2 changes: 0 additions & 2 deletions lib/vlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@

VLOG_DEFINE_THIS_MODULE(vlog);

COVERAGE_DEFINE(vlog_recursive);

/* ovs_assert() logs the assertion message, so using ovs_assert() in this
* source file could cause recursion. */
#undef ovs_assert
Expand Down
3 changes: 0 additions & 3 deletions ofproto/ofproto-dpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,10 @@
VLOG_DEFINE_THIS_MODULE(ofproto_dpif);

COVERAGE_DEFINE(ofproto_dpif_expired);
COVERAGE_DEFINE(facet_changed_rule);
COVERAGE_DEFINE(facet_revalidate);
COVERAGE_DEFINE(facet_unexpected);
COVERAGE_DEFINE(facet_suppress);
COVERAGE_DEFINE(subfacet_install_fail);
COVERAGE_DEFINE(packet_in_overflow);
COVERAGE_DEFINE(flow_mod_overflow);

/* Number of implemented OpenFlow tables. */
enum { N_TABLES = 255 };
Expand Down
3 changes: 0 additions & 3 deletions ofproto/ofproto.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,11 @@

VLOG_DEFINE_THIS_MODULE(ofproto);

COVERAGE_DEFINE(ofproto_error);
COVERAGE_DEFINE(ofproto_flush);
COVERAGE_DEFINE(ofproto_no_packet_in);
COVERAGE_DEFINE(ofproto_packet_out);
COVERAGE_DEFINE(ofproto_queue_req);
COVERAGE_DEFINE(ofproto_recv_openflow);
COVERAGE_DEFINE(ofproto_reinit_ports);
COVERAGE_DEFINE(ofproto_uninstallable);
COVERAGE_DEFINE(ofproto_update_port);

enum ofproto_state {
Expand Down
3 changes: 0 additions & 3 deletions ovsdb/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
#include "socket-util.h"
#include "transaction.h"
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(ovsdb_log);

enum ovsdb_log_mode {
OVSDB_LOG_READ,
Expand Down
2 changes: 0 additions & 2 deletions ovsdb/ovsdb-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(ovsdb_tool);

/* -m, --more: Verbosity level for "show-log" command output. */
static int show_log_verbosity;

Expand Down
2 changes: 0 additions & 2 deletions utilities/ovs-dpctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(dpctl);

/* -s, --statistics: Print port/flow statistics? */
static bool print_statistics;

Expand Down

0 comments on commit 6e274d4

Please sign in to comment.