1
0
mirror of https://github.com/CovidBraceletPrj/CovidBracelet.git synced 2024-12-05 00:55:43 +01:00

Remove unused method sn_decrement_by

This commit is contained in:
Patrick Rathje 2021-06-03 19:08:59 +02:00
parent ecb7bb05ea
commit df102e0002

View File

@ -27,10 +27,6 @@ record_sequence_number_t sn_increment_by(record_sequence_number_t sn, uint32_t a
return GET_MASKED_SN((sn + amount));
}
record_sequence_number_t sn_decrement_by(record_sequence_number_t sn, uint32_t amount) {
return sn_increment_by(sn, (SN_MASK+1)-amount);
}
record_sequence_number_t sn_get_middle_sn(record_sequence_number_t older, record_sequence_number_t newer) {
if (older <= newer) {
return GET_MASKED_SN(((older + newer) / 2));