ruby: remove unused function removeRequest()
authorNilay Vaish <nilay@cs.wisc.edu>
Wed, 16 Sep 2015 16:59:55 +0000 (11:59 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Wed, 16 Sep 2015 16:59:55 +0000 (11:59 -0500)
src/mem/ruby/system/Sequencer.cc
src/mem/ruby/system/Sequencer.hh

index 48e6c5163917380602b95ebd33f9634a6a94a32a..186e62d55ee97ccb00475b4b1b4f5fad41d9b3a4 100644 (file)
@@ -241,28 +241,6 @@ Sequencer::markRemoved()
            m_writeRequestTable.size() + m_readRequestTable.size());
 }
 
-void
-Sequencer::removeRequest(SequencerRequest* srequest)
-{
-    assert(m_outstanding_count ==
-           m_writeRequestTable.size() + m_readRequestTable.size());
-
-    Addr line_addr = makeLineAddress(srequest->pkt->getAddr());
-    if ((srequest->m_type == RubyRequestType_ST) ||
-        (srequest->m_type == RubyRequestType_RMW_Read) ||
-        (srequest->m_type == RubyRequestType_RMW_Write) ||
-        (srequest->m_type == RubyRequestType_Load_Linked) ||
-        (srequest->m_type == RubyRequestType_Store_Conditional) ||
-        (srequest->m_type == RubyRequestType_Locked_RMW_Read) ||
-        (srequest->m_type == RubyRequestType_Locked_RMW_Write)) {
-        m_writeRequestTable.erase(line_addr);
-    } else {
-        m_readRequestTable.erase(line_addr);
-    }
-
-    markRemoved();
-}
-
 void
 Sequencer::invalidateSC(Addr address)
 {
index 319c5cf2195ded553b5bdc0d055a90078f91d8a7..4716aa6538bb05697c4fd1e11aa03771a27535db 100644 (file)
@@ -97,7 +97,6 @@ class Sequencer : public RubyPort
     void checkCoherence(Addr address);
 
     void markRemoved();
-    void removeRequest(SequencerRequest* request);
     void evictionCallback(Addr address);
     void invalidateSC(Addr address);