removed duplicate definition of linear_hash_write_record
@@ -1107,39 +1107,6 @@ linear_hash_write_record(
return err_ok;
}
-ion_err_t
-linear_hash_write_record(
- ion_fpos_t record_loc,
- ion_byte_t *key,
- ion_byte_t *value,
- ion_byte_t *status,
- linear_hash_table_t *linear_hash
-) {
- /* check the file is open */
- if (!linear_hash->database) {
- return err_file_close_error;
- }
-
- /* seek to end of file to append new bucket */
- if (0 != fseek(linear_hash->database, record_loc, SEEK_SET)) {
- return err_file_bad_seek;
- }
-
- if (1 != fwrite(status, sizeof(ion_byte_t), 1, linear_hash->database)) {
- return err_file_write_error;
- }
-
- if (1 != fwrite(key, linear_hash->super.record.key_size, 1, linear_hash->database)) {
- return err_file_write_error;
- }
-
- if (1 != fwrite(value, linear_hash->super.record.value_size, 1, linear_hash->database)) {
- return err_file_write_error;
- }
-
- return err_ok;
-}
-
ion_err_t
write_new_bucket(
int idx,
@@ -1238,7 +1205,6 @@ linear_hash_get_bucket_cache(
return err_ok;
}
-
/* writes the struct representing the bucket at the location to the bucket parameter*/
ion_err_t
linear_hash_get_bucket(
@@ -1271,7 +1237,6 @@ linear_hash_get_bucket(
return err_ok;
}
-
ion_err_t
linear_hash_update_bucket(
ion_fpos_t bucket_loc,
