Skip to content

Commit 6434cd2

Browse files
committed
[vpr] remove unnused variables + implictly deleted move assignment constructor
1 parent f7dcb3b commit 6434cd2

File tree

5 files changed

+2
-33
lines changed

5 files changed

+2
-33
lines changed

vpr/src/base/read_netlist.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -250,23 +250,6 @@ ClusteredNetlist read_netlist(const char* net_file,
250250

251251
VTR_LOG("Finished loading packed FPGA netlist file (took %g seconds).\n", (float)(end - begin) / CLOCKS_PER_SEC);
252252

253-
size_t num_pb_route_used = 0;
254-
size_t num_pb_route_alloc = 0;
255-
size_t num_pb_pins = 0;
256-
for (auto clb : clb_nlist.blocks()) {
257-
t_pb* pb = clb_nlist.block_pb(clb);
258-
259-
for (int ipin = 0; ipin < pb->pb_graph_node->total_pb_pins; ++ipin) {
260-
if (pb->pb_route.count(ipin)) {
261-
++num_pb_route_alloc;
262-
if (pb->pb_route[ipin].atom_net_id) {
263-
++num_pb_route_used;
264-
}
265-
}
266-
++num_pb_pins;
267-
}
268-
}
269-
270253
return clb_nlist;
271254
}
272255

vpr/src/draw/draw_toggle_functions.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
#include <X11/keysym.h>
1919
#endif
2020

21-
//The arrow head position for turning/straight-thru connections in a switch box
22-
constexpr float SB_EDGE_TURN_ARROW_POSITION = 0.2;
23-
constexpr float SB_EDGE_STRAIGHT_ARROW_POSITION = 0.95;
24-
constexpr float EMPTY_BLOCK_LIGHTEN_FACTOR = 0.20;
25-
2621
/**
2722
* @brief toggles net drawing status based on status of combo box
2823
* updates draw_state->show_nets

vpr/src/draw/ui_setup.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,18 +268,15 @@ void load_block_names(ezgl::application* app) {
268268
auto& cluster_ctx = g_vpr_ctx.clustering();
269269
auto& atom_ctx = g_vpr_ctx.atom();
270270
GtkTreeIter iter;
271-
int i = 0;
272271
for (ClusterBlockId id : cluster_ctx.clb_nlist.blocks()) {
273272
gtk_list_store_append(blockStorage, &iter);
274273
gtk_list_store_set(blockStorage, &iter,
275274
0, (cluster_ctx.clb_nlist.block_name(id)).c_str(), -1);
276-
i++;
277275
}
278276
for (AtomBlockId id : atom_ctx.netlist().blocks()) {
279277
gtk_list_store_append(blockStorage, &iter);
280278
gtk_list_store_set(blockStorage, &iter,
281279
0, (atom_ctx.netlist().block_name(id)).c_str(), -1);
282-
i++;
283280
}
284281
}
285282

@@ -293,12 +290,10 @@ void load_net_names(ezgl::application* app) {
293290
auto& atom_ctx = g_vpr_ctx.atom();
294291
GtkTreeIter iter;
295292
//Loading net names
296-
int i = 0;
297293
for (AtomNetId id : atom_ctx.netlist().nets()) {
298294
gtk_list_store_append(netStorage, &iter);
299295
gtk_list_store_set(netStorage, &iter,
300296
0, (atom_ctx.netlist().net_name(id)).c_str(), -1);
301-
i++;
302297
}
303298
}
304299

vpr/src/pack/pb_type_graph_annotations.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void load_pb_graph_pin_to_pin_annotations(t_pb_graph_node* pb_graph_node) {
118118
* Add the pattern name to the pack_pattern field for each pb_graph_edge that is used in a pack pattern
119119
*/
120120
static void load_pack_pattern_annotations(const int line_num, t_pb_graph_node* pb_graph_node, const int mode, const char* annot_in_pins, const char* annot_out_pins, const std::string& value) {
121-
int i, j, k, m, n, p, iedge;
121+
int i, j, m, n, iedge;
122122
t_pb_graph_pin ***in_port, ***out_port;
123123
int *num_in_ptrs, *num_out_ptrs, num_in_sets, num_out_sets;
124124
t_pb_graph_node** children = nullptr;
@@ -130,10 +130,8 @@ static void load_pack_pattern_annotations(const int line_num, t_pb_graph_node* p
130130
annot_out_pins, &num_out_ptrs, &num_out_sets, false, false);
131131

132132
/* Discover edge then annotate edge with name of pack pattern */
133-
k = 0;
134133
for (i = 0; i < num_in_sets; i++) {
135134
for (j = 0; j < num_in_ptrs[i]; j++) {
136-
p = 0;
137135
for (m = 0; m < num_out_sets; m++) {
138136
for (n = 0; n < num_out_ptrs[m]; n++) {
139137
for (iedge = 0; iedge < in_port[i][j]->num_output_edges; iedge++) {
@@ -148,10 +146,8 @@ static void load_pack_pattern_annotations(const int line_num, t_pb_graph_node* p
148146
in_port[i][j]->output_edges[iedge]->pack_pattern_names.resize(in_port[i][j]->output_edges[iedge]->num_pack_patterns);
149147
in_port[i][j]->output_edges[iedge]->pack_pattern_names[in_port[i][j]->output_edges[iedge]->num_pack_patterns - 1] = value.c_str(); // TODO: convert to std::string
150148
}
151-
p++;
152149
}
153150
}
154-
k++;
155151
}
156152
}
157153

vpr/src/place/noc_place_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NocCostHandler {
3131
NocCostHandler(const NocCostHandler&) = delete;
3232
NocCostHandler& operator=(const NocCostHandler&) = delete;
3333
NocCostHandler(NocCostHandler&&) = default;
34-
NocCostHandler& operator=(NocCostHandler&&) = default;
34+
NocCostHandler& operator=(NocCostHandler&&) = delete;
3535

3636
/**
3737
* @brief Check if the internal reference to block_locs is pointing to the same

0 commit comments

Comments
 (0)