@@ -65,27 +65,27 @@ void processValidationQueries(ValidationQueries_t *v, Journal_t** journal_array,
65
65
}
66
66
67
67
68
- Column_t * * removeDuplicates (Column_t * * old , uint64_t old_size , uint64_t * new_size ){
69
- uint64_t i ,j ;
70
- uint64_t count = 0 ;
71
- Column_t * * new_arr = malloc (old_size * sizeof (Column_t * ));
72
- ALLOCATION_ERROR (new_arr );
73
- for (j = 0 ; j < old_size ; j ++ ){
74
- new_arr [j ] = malloc (sizeof (Column_t ));
75
- ALLOCATION_ERROR (new_arr [j ]);
76
- }
77
- for (i = 0 ; i < old_size ; ++ i ) {
78
- if (i == 0 || equal_col (& old [i ], & old [i - 1 ]) == False ) {
79
- new_arr [count ]-> column = old [i ]-> column ;
80
- new_arr [count ]-> op = old [i ]-> op ;
81
- new_arr [count ]-> value = old [i ]-> value ;
82
- count ++ ;
83
- }
84
- }
85
- new_arr = realloc (new_arr , count * sizeof (Column_t * ));
86
- * new_size = count ;
87
- return new_arr ;
88
- }
68
+ // Column_t** removeDuplicates(Column_t** old, uint64_t old_size, uint64_t* new_size){
69
+ // uint64_t i,j;
70
+ // uint64_t count = 0;
71
+ // Column_t** new_arr = malloc(old_size*sizeof(Column_t*));
72
+ // ALLOCATION_ERROR(new_arr);
73
+ // for(j = 0; j<old_size; j++){
74
+ // new_arr[j] = malloc(sizeof(Column_t));
75
+ // ALLOCATION_ERROR(new_arr[j]);
76
+ // }
77
+ // for (i = 0; i < old_size; ++i) {
78
+ // if(i == 0 || equal_col(&old[i], &old[i-1]) == False) {
79
+ // new_arr[count]->column = old[i]->column;
80
+ // new_arr[count]->op = old[i]->op;
81
+ // new_arr[count]->value = old[i]->value;
82
+ // count++;
83
+ // }
84
+ // }
85
+ // new_arr = realloc(new_arr, count*sizeof(Column_t*));
86
+ // *new_size = count;
87
+ // return new_arr;
88
+ // }
89
89
90
90
// Boolean_t equal_col(const void *p1, const void *p2) {
91
91
// const Column_t *f1 = *(Column_t**) p1;
0 commit comments