Skip to content

Commit

Permalink
removed commented fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cikzh authored and davidv1992 committed Mar 1, 2024
1 parent ad26d93 commit 7322fc2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions statime/src/datastructures/datasets/parent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ use crate::datastructures::common::{ClockIdentity, ClockQuality, PortIdentity};
#[derive(Clone, Debug, Eq, PartialEq)]
pub(crate) struct InternalParentDS {
pub(crate) parent_port_identity: PortIdentity,
//pub(crate) parent_stats: bool,
//pub(crate) observed_parent_offset_scaled_log_variance: u16,
//pub(crate) observed_parent_clock_phase_change_rate: u32,
pub(crate) grandmaster_identity: ClockIdentity,
pub(crate) grandmaster_clock_quality: ClockQuality,
pub(crate) grandmaster_priority_1: u8,
Expand All @@ -21,9 +18,6 @@ impl InternalParentDS {
clock_identity: default_ds.clock_identity,
port_number: 0,
},
//parent_stats: false,
//observed_parent_offset_scaled_log_variance: 0xffff,
//observed_parent_clock_phase_change_rate: 0x7fffffff,
grandmaster_identity: default_ds.clock_identity,
grandmaster_clock_quality: default_ds.clock_quality,
grandmaster_priority_1: default_ds.priority_1,
Expand Down
3 changes: 0 additions & 3 deletions statime/src/observability/current.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ pub struct CurrentDS {
pub steps_removed: u16,
/// See *IEEE1588-2019 section 8.2.2.3*.
pub offset_from_master: i128,
// /// See *IEEE1588-2019 section 8.2.2.4*.
// pub mean_delay: i128,
}

impl From<&InternalCurrentDS> for CurrentDS {
fn from(v: &InternalCurrentDS) -> Self {
Self {
steps_removed: v.steps_removed,
offset_from_master: v.offset_from_master.nanos_rounded(),
// mean_delay: v.mean_delay.nanos_rounded(),
}
}
}
7 changes: 0 additions & 7 deletions statime/src/observability/parent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ use crate::{
pub struct ParentDS {
/// See *IEEE1588-2019 section 8.2.3.2*.
pub parent_port_identity: PortIdentity,
// pub parent_stats: bool,
// pub observed_parent_offset_scaled_log_variance: u16,
// pub observed_parent_clock_phase_change_rate: u32,
/// See *IEEE1588-2019 section 8.2.3.6*.
pub grandmaster_identity: ClockIdentity,
/// See *IEEE1588-2019 section 8.2.3.7*.
Expand All @@ -33,10 +30,6 @@ impl From<&InternalParentDS> for ParentDS {
fn from(v: &InternalParentDS) -> Self {
Self {
parent_port_identity: v.parent_port_identity,
// parent_stats: v.parent_stats,
// observed_parent_offset_scaled_log_variance: v
// .observed_parent_offset_scaled_log_variance,
// observed_parent_clock_phase_change_rate: v.observed_parent_clock_phase_change_rate,
grandmaster_identity: v.grandmaster_identity,
grandmaster_clock_quality: v.grandmaster_clock_quality,
grandmaster_priority_1: v.grandmaster_priority_1,
Expand Down

0 comments on commit 7322fc2

Please sign in to comment.