Skip to content

Commit

Permalink
remove test only distinction for group_context_ext_proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Apr 3, 2024
1 parent 4eee1fc commit fa33f5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
9 changes: 5 additions & 4 deletions openmls/src/group/core_group/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,11 +1043,7 @@ impl CoreGroup {
group_info: group_info.filter(|_| self.use_ratchet_tree_extension),
})
}
}

// Test functions
#[cfg(test)]
impl CoreGroup {
pub(crate) fn create_group_context_ext_proposal(
&self,
framing_parameters: FramingParameters,
Expand Down Expand Up @@ -1082,6 +1078,11 @@ impl CoreGroup {
)
.map_err(|e| e.into())
}
}

// Test functions
#[cfg(test)]
impl CoreGroup {

pub(crate) fn use_ratchet_tree_extension(&self) -> bool {
self.use_ratchet_tree_extension
Expand Down
1 change: 0 additions & 1 deletion openmls/src/group/mls_group/proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ impl MlsGroup {
}
}

#[cfg(test)]
pub fn propose_group_context_extensions(
&mut self,
provider: &impl OpenMlsProvider,
Expand Down
1 change: 0 additions & 1 deletion openmls/src/messages/proposals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ pub struct GroupContextExtensionProposal {

impl GroupContextExtensionProposal {
/// Create a new [`GroupContextExtensionProposal`].
#[cfg(test)]
pub(crate) fn new(extensions: Extensions) -> Self {
Self { extensions }
}
Expand Down

0 comments on commit fa33f5e

Please sign in to comment.