From d8d2ce871c880c89804abf0fc34773052ce3f219 Mon Sep 17 00:00:00 2001 From: Mohit Singh Date: Tue, 25 Sep 2018 01:27:30 +0530 Subject: [PATCH] Revert to old code --- Circular Queue ADT/CircularQueueADT.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Circular Queue ADT/CircularQueueADT.h b/Circular Queue ADT/CircularQueueADT.h index 6394c51..09889bb 100644 --- a/Circular Queue ADT/CircularQueueADT.h +++ b/Circular Queue ADT/CircularQueueADT.h @@ -14,21 +14,3 @@ char* dequeue(queue *); void display(queue *); int isFull(queue *); int isEmpty(queue *); - -int isFull(queue *q) -{ - if((q->rear == SIZE - 1 && q->front == 0) || (q->rear == q->front - 1)) - { - return 1; - } - return 0; -} - -int isEmpty(queue *q) -{ - if(q->front == -1) - { - return 1; - } - return 0; -}