ruby: network: removes unused code.

This commit is contained in:
Nilay Vaish 2014-02-20 17:27:07 -06:00
parent dd5c72e5a7
commit db5b3d37fe
8 changed files with 1 additions and 27 deletions

View file

@ -98,9 +98,3 @@ Network::MessageSizeType_to_int(MessageSizeType size_type)
break;
}
}
const std::vector<Throttle*>*
Network::getThrottles(NodeID id) const
{
return NULL;
}

View file

@ -75,7 +75,6 @@ class Network : public ClockedObject
int netNumber, std::string vnet_type) = 0;
virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered,
int netNumber, std::string vnet_type) = 0;
virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
virtual int getNumNodes() {return 1;}
virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,

View file

@ -343,7 +343,7 @@ NetworkInterface_d::scheduleOutputLink()
int
NetworkInterface_d::get_vnet(int vc)
{
for (int i = 0; i < m_net_ptr->getNumberOfVirtualNetworks(); i++) {
for (int i = 0; i < m_virtual_networks; i++) {
if (vc >= (i*m_vc_per_vnet) && vc < ((i+1)*m_vc_per_vnet)) {
return i;
}

View file

@ -196,15 +196,6 @@ SimpleNetwork::getFromNetQueue(NodeID id, bool ordered, int network_num,
return m_fromNetQueues[id][network_num];
}
const std::vector<Throttle*>*
SimpleNetwork::getThrottles(NodeID id) const
{
assert(id >= 0);
assert(id < m_nodes);
assert(m_endpoint_switches[id] != NULL);
return m_endpoint_switches[id]->getThrottles();
}
void
SimpleNetwork::regStats()
{

View file

@ -62,7 +62,6 @@ class SimpleNetwork : public Network
// returns the queue requested for the given component
MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
MessageBuffer* getFromNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }

View file

@ -116,12 +116,6 @@ Switch::getThrottle(LinkID link_number) const
return m_throttles[link_number];
}
const vector<Throttle*>*
Switch::getThrottles() const
{
return &m_throttles;
}
void
Switch::regStats()
{

View file

@ -67,7 +67,6 @@ class Switch : public BasicRouter
const NetDest& routing_table_entry, Cycles link_latency,
int bw_multiplier);
const Throttle* getThrottle(LinkID link_number) const;
const std::vector<Throttle*>* getThrottles() const;
void resetStats();
void collateStats();

View file

@ -39,8 +39,6 @@
using namespace std;
const int HIGH_RANGE = 256;
const int ADJUST_INTERVAL = 50000;
const int MESSAGE_SIZE_MULTIPLIER = 1000;
//const int BROADCAST_SCALING = 4; // Have a 16p system act like a 64p systems
const int BROADCAST_SCALING = 1;