33#include "../../../Unit Test/CuTest/CuTest.h"
44
55
6-
7-
8-
9-
106/** This function will allocate a new pair then it will return it's pointer.
117 *
128 * @param fElem the first element pointer
@@ -68,11 +64,6 @@ Pair *pairInitialization(void *fElem, void *sElem, void (*fFreeFn)(void *), void
6864}
6965
7066
71-
72-
73-
74-
75-
7667/** This function will return the first element in the pair.
7768 *
7869 * @param pair the pair pointer
@@ -96,9 +87,6 @@ void *pairGetFElem(Pair *pair) {
9687}
9788
9889
99-
100-
101-
10290/** This function will return the second element in the pair.
10391 *
10492 * @param pair the pair pointer
@@ -122,9 +110,6 @@ void *pairGetSElem(Pair *pair) {
122110}
123111
124112
125-
126-
127-
128113/** This function will set the first element in the pair.
129114 *
130115 * Note: this function will free the old element
@@ -160,9 +145,6 @@ void pairSetFElem(Pair *pair, void *newElem) {
160145}
161146
162147
163-
164-
165-
166148/** This function will set the second element in the pair.
167149 *
168150 * Note: this function will free the old element
@@ -198,10 +180,6 @@ void pairSetSElem(Pair *pair, void *newElem) {
198180}
199181
200182
201-
202-
203-
204-
205183/** This function will set the first element in the pair,
206184 * without freeing the old element.
207185 *
@@ -234,9 +212,6 @@ void pairSetFElemWtoFr(Pair *pair, void *newElem) {
234212}
235213
236214
237-
238-
239-
240215/** This function will set the second element in the pair,
241216 * without freeing the old element.
242217 *
@@ -269,10 +244,6 @@ void pairSetSElemWtoFr(Pair *pair, void *newElem) {
269244}
270245
271246
272-
273-
274-
275-
276247/** This function will swap the pair elements.
277248 *
278249 * @param pair the pair pointer
@@ -301,8 +272,6 @@ void pairSwapElements(Pair *pair) {
301272}
302273
303274
304-
305-
306275/** This function will destroy and free the pair and its elements.
307276 *
308277 * @param pair the pair pointer
0 commit comments