Compiles
[iotcloud.git] / version2 / src / C / Slot.cc
index 18d1a5dc0964c0b2de1829e8744c45fb9ac25895..10c92ded4e5a592518ab3e7dba9f3c89c945690c 100644 (file)
@@ -54,12 +54,6 @@ Entry *Slot::addEntry(Entry *e) {
        return e;
 }
 
-void Slot::removeEntry(Entry *e) {
-       entries->remove(e);
-       livecount--;
-       freespace += e->getSize();
-}
-
 void Slot::addShallowEntry(Entry *e) {
        entries->add(e);
        livecount++;
@@ -103,6 +97,10 @@ Slot *Slot_decode(Table *table, Array<char> *array, Mac *mac) {
        return slot;
 }
 
+char Slot::getType() {
+       return TypeSlot;
+}
+
 Array<char> *Slot::encode(Mac *mac) {
        Array<char> *array = new Array<char>(SLOT_SIZE);
        ByteBuffer *bb = ByteBuffer_wrap(array);