Cleanup
This commit is contained in:
parent
42cb09f3bd
commit
9752ef451f
@ -57,10 +57,6 @@ void delete(DiskQueue *queue, DiskRequest request) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
DiskRequest peek(DiskQueue *queue) {
|
||||
return *queue->head;
|
||||
}
|
||||
|
||||
DiskRequest *dequeue(DiskQueue *queue) {
|
||||
DiskRequest *head = queue->head;
|
||||
queue->head = head->next;
|
||||
|
@ -21,8 +21,6 @@ void enqueue(DiskQueue *queue, int time, int position);
|
||||
|
||||
void delete(DiskQueue *queue, DiskRequest request);
|
||||
|
||||
DiskRequest peek(DiskQueue *queue);
|
||||
|
||||
DiskRequest *dequeue(DiskQueue *queue);
|
||||
|
||||
DiskRequest *findClosest(DiskQueue *queue, int position, double time);
|
||||
|
@ -68,7 +68,6 @@ void cscan(int start) {
|
||||
if (request != NULL) {
|
||||
delete(queue, *request);
|
||||
}
|
||||
//printf("Movement: %i Time:%.1lf\n", movement, seekTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user