Removed unused create_start_model function in rr_graph_clock
diff --git a/vpr/src/route/rr_graph_clock.cpp b/vpr/src/route/rr_graph_clock.cpp
index 46389a2..470084a 100644
--- a/vpr/src/route/rr_graph_clock.cpp
+++ b/vpr/src/route/rr_graph_clock.cpp
@@ -289,100 +289,3 @@
return ptc_num;
}
-
-//void ClockRRGraph::create_star_model_network() {
-//
-// vtr::printf_info("Creating a clock network in the form of a star model\n");
-//
-// auto& device_ctx = g_vpr_ctx.mutable_device();
-// auto& rr_nodes = device_ctx.rr_nodes;
-// auto& rr_node_indices = device_ctx.rr_node_indices;
-//
-// // 1) Create the clock source wire (located at the center of the chip)
-//
-// // a) Find the center of the chip
-// auto& grid = device_ctx.grid;
-// auto x_mid_dim = grid.width() / 2;
-// auto y_mid_dim = grid.height() / 2;
-//
-// // b) Create clock source wire node at at the center of the chip
-// rr_nodes.emplace_back();
-// auto clock_source_idx = rr_nodes.size() - 1; // last inserted node
-// rr_nodes[clock_source_idx].set_coordinates(x_mid_dim, x_mid_dim, y_mid_dim, y_mid_dim);
-// rr_nodes[clock_source_idx].set_type(CHANX);
-// rr_nodes[clock_source_idx].set_capacity(1);
-//
-// // Find all I/O inpads and connect all I/O output pins to the clock source wire
-// // through a switch.
-// // Resize the rr_nodes array to 2x the number of I/O input pins
-// for (size_t i = 0; i < grid.width(); ++i) {
-// for (size_t j = 0; j < grid.height(); j++) {
-//
-// auto type = grid[i][j].type;
-// auto width_offset = grid[i][j].width_offset;
-// auto height_offset = grid[i][j].height_offset;
-// for (e_side side : SIDES) {
-// //Don't connect pins which are not adjacent to channels around the perimeter
-// if ( (i == 0 && side != RIGHT)
-// || (i == int(grid.width() - 1) && side != LEFT)
-// || (j == 0 && side != TOP)
-// || (j == int(grid.width() - 1) && side != BOTTOM)) {
-// continue;
-// }
-//
-// for (int pin_index = 0; pin_index < type->num_pins; pin_index++) {
-// /* We only are working with opins so skip non-drivers */
-// if (type->class_inf[type->pin_class[pin_index]].type != DRIVER) {
-// continue;
-// }
-//
-// /* Can't do anything if pin isn't at this location */
-// if (0 == type->pinloc[width_offset][height_offset][side][pin_index]) {
-// continue;
-// }
-// vtr::printf_info("%s \n",type->pb_type->name);
-// if (strcmp(type->pb_type->name, "io") != 0) {
-// continue;
-// }
-//
-// auto node_index = get_rr_node_index(rr_node_indices, i, j, OPIN, pin_index, side);
-// rr_nodes[node_index].add_edge(clock_source_idx, 0);
-// vtr::printf_info("At %d,%d output pin node %d\n", i, j, node_index);
-//
-//
-// }
-// for (auto pin_index : type->get_clock_pins_indices()) {
-//
-//
-// /* Can't do anything if pin isn't at this location */
-// if (0 == type->pinloc[width_offset][height_offset][side][pin_index]) {
-// continue;
-// }
-//
-//
-// auto node_index = get_rr_node_index(rr_node_indices, i, j, IPIN, pin_index, side);
-// rr_nodes[clock_source_idx].add_edge(node_index, 1);
-// vtr::printf_info("At %d,%d input pin node %d\n", i, j, node_index);
-//
-// }
-//
-// }
-//
-// // Loop over ports
-// // Is the port class clock_source
-// // Assert pin is an output (check)
-// // find node using t_rr_node_index (check))
-// // get_rr_node_index(rr_nodes, i, j, OPIN, side) (check)
-// // create an edge to clock source wire (check)
-// // Is the port a clock
-// // find pin using t_rr_node_indices (rr_type is a IPIN)
-// // create an edge from the clock source wire to the
-// }
-// }
-//
-// // Find all clock pins and connect them to the clock source wire
-//
-//
-// vtr::printf_info("Finished creating star model clock network\n");
-//}
-
diff --git a/vpr/src/route/rr_graph_clock.h b/vpr/src/route/rr_graph_clock.h
index efea690..86c309f 100644
--- a/vpr/src/route/rr_graph_clock.h
+++ b/vpr/src/route/rr_graph_clock.h
@@ -89,9 +89,6 @@
const enum e_base_cost_type base_cost_type);
private:
- /* Dummy clock network that connects every I/O input to every clock pin. */
- static void create_star_model_network();
-
/* loop over all of the clock networks and create their wires */
void create_clock_networks_wires(std::vector<std::unique_ptr<ClockNetwork>>& clock_networks);