fix: Remove now-unused transition function. Fixes #2762.

pull/24376/head
Carol (Nichols || Goulding) 2021-10-28 13:30:43 -04:00
parent f8b5886110
commit e4e494f1d9
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 0 additions and 10 deletions

View File

@ -129,16 +129,6 @@ pub fn decode_persisted_database_rules(
prost::Message::decode(bytes)
}
/// TEMPORARY FOR TRANSITION PURPOSES - if decoding rules file as `PersistedDatabaseRules` (which
/// includes the database UUID) fails, use this to try instead to decode as `DatabaseRules`. Then
/// next time the database rules are updated, the rules file will be writted as
/// `PersistedDatabaseRules`.
pub fn decode_database_rules(
bytes: prost::bytes::Bytes,
) -> Result<management::DatabaseRules, DecodeError> {
prost::Message::decode(bytes)
}
/// Encode database rules into a serialized format suitable for storage in object store
pub fn encode_persisted_database_rules(
rules: &management::PersistedDatabaseRules,