packet: get rid of unused intersect() function.

--HG--
extra : convert_revision : f0a2947ccc49e0d18bc17a59371fa396d9ebd6c0
This commit is contained in:
Steve Reinhardt
2007-07-27 12:46:55 -07:00
parent 0cbcb715e0
commit 8705b0799b
2 changed files with 0 additions and 15 deletions

View File

@@ -152,18 +152,6 @@ Packet::allocate()
data = new uint8_t[getSize()];
}
/** Do the packet modify the same addresses. */
bool
Packet::intersect(PacketPtr p)
{
Addr s1 = getAddr();
Addr e1 = getAddr() + getSize() - 1;
Addr s2 = p->getAddr();
Addr e2 = p->getAddr() + p->getSize() - 1;
return !(s1 > e2 || e1 < s2);
}
bool
Packet::checkFunctional(Addr addr, int size, uint8_t *data)

View File

@@ -564,9 +564,6 @@ class Packet : public FastAlloc
/** If there isn't data in the packet, allocate some. */
void allocate();
/** Do the packet modify the same addresses. */
bool intersect(PacketPtr p);
/**
* Check a functional request against a memory value represented
* by a base/size pair and an associated data array. If the