Skip to content

Commit

Permalink
Removing deprecated serial id
Browse files Browse the repository at this point in the history
  • Loading branch information
RachelTucker committed Mar 27, 2018
1 parent 3d836ba commit b4f3a21
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
3 changes: 0 additions & 3 deletions src/ds3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,6 @@ void ds3_tape_partition_response_free(ds3_tape_partition_response* response) {
ds3_str_free(response->id);
ds3_str_free(response->library_id);
ds3_str_free(response->name);
ds3_str_free(response->serial_id);
ds3_str_free(response->serial_number);

g_free(response);
Expand Down Expand Up @@ -1680,7 +1679,6 @@ void ds3_detailed_tape_partition_response_free(ds3_detailed_tape_partition_respo
ds3_str_free(response->id);
ds3_str_free(response->library_id);
ds3_str_free(response->name);
ds3_str_free(response->serial_id);
ds3_str_free(response->serial_number);
for (index = 0; index < response->num_tape_types; index++) {
ds3_str_free(response->tape_types[index]);
Expand Down Expand Up @@ -1781,7 +1779,6 @@ void ds3_named_detailed_tape_partition_response_free(ds3_named_detailed_tape_par
ds3_str_free(response->id);
ds3_str_free(response->library_id);
ds3_str_free(response->name);
ds3_str_free(response->serial_id);
ds3_str_free(response->serial_number);
for (index = 0; index < response->num_tape_types; index++) {
ds3_str_free(response->tape_types[index]);
Expand Down
4 changes: 1 addition & 3 deletions src/ds3.h
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,6 @@ typedef struct {
int minimum_write_reserved_drives;
ds3_str* name;
ds3_quiesced quiesced;
ds3_str* serial_id;
ds3_str* serial_number;
ds3_tape_partition_state state;
}ds3_tape_partition_response;
Expand Down Expand Up @@ -1516,7 +1515,6 @@ typedef struct {
int minimum_write_reserved_drives;
ds3_str* name;
ds3_quiesced quiesced;
ds3_str* serial_id;
ds3_str* serial_number;
ds3_tape_partition_state state;
ds3_str** tape_types;
Expand Down Expand Up @@ -1577,7 +1575,6 @@ typedef struct {
int minimum_write_reserved_drives;
ds3_str* name;
ds3_quiesced quiesced;
ds3_str* serial_id;
ds3_str* serial_number;
ds3_tape_partition_state state;
ds3_str** tape_types;
Expand Down Expand Up @@ -4588,6 +4585,7 @@ LIBRARY_API ds3_error* ds3_modify_tape_drive_spectra_s3_request(const ds3_client
* void ds3_request_set_minimum_read_reserved_drives(const ds3_request* request, const int value)
* void ds3_request_set_minimum_write_reserved_drives(const ds3_request* request, const int value)
* void ds3_request_set_quiesced_ds3_quiesced(const ds3_request* request, const ds3_quiesced value)
* void ds3_request_set_serial_number(const ds3_request* request, const char * const value)
*/
LIBRARY_API ds3_request* ds3_init_modify_tape_partition_spectra_s3_request(const char *const resource_id);
LIBRARY_API ds3_error* ds3_modify_tape_partition_spectra_s3_request(const ds3_client* client, const ds3_request* request, ds3_tape_partition_response** response);
Expand Down
8 changes: 0 additions & 8 deletions src/ds3_requests.c
Original file line number Diff line number Diff line change
Expand Up @@ -4068,8 +4068,6 @@ static ds3_error* _parse_ds3_tape_partition_response(const ds3_client* client, c
}
response->quiesced = _match_ds3_quiesced(client->log, text);
xmlFree(text);
} else if (element_equal(child_node, "SerialId")) {
response->serial_id = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "SerialNumber")) {
response->serial_number = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "State")) {
Expand Down Expand Up @@ -5350,8 +5348,6 @@ static ds3_error* _parse_ds3_named_detailed_tape_partition_response(const ds3_cl
}
response->quiesced = _match_ds3_quiesced(client->log, text);
xmlFree(text);
} else if (element_equal(child_node, "SerialId")) {
response->serial_id = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "SerialNumber")) {
response->serial_number = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "State")) {
Expand Down Expand Up @@ -8795,8 +8791,6 @@ static ds3_error* _parse_top_level_ds3_tape_partition_response(const ds3_client*
}
response->quiesced = _match_ds3_quiesced(client->log, text);
xmlFree(text);
} else if (element_equal(child_node, "SerialId")) {
response->serial_id = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "SerialNumber")) {
response->serial_number = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "State")) {
Expand Down Expand Up @@ -9526,8 +9520,6 @@ static ds3_error* _parse_top_level_ds3_detailed_tape_partition_response(const ds
}
response->quiesced = _match_ds3_quiesced(client->log, text);
xmlFree(text);
} else if (element_equal(child_node, "SerialId")) {
response->serial_id = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "SerialNumber")) {
response->serial_number = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "State")) {
Expand Down

0 comments on commit b4f3a21

Please sign in to comment.