Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions crates/graphcal-eval/src/eval/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ impl RuntimeEvaluation {
pub fn has_errors(&self) -> bool {
self.errors.values().any(RuntimeUnavailable::has_failure) || self.result.has_errors()
}

/// Display-aware result for the directly evaluated root DAG.
#[must_use]
pub const fn result(&self) -> &EvalResult {
&self.result
}
}

/// Evaluate a plan with one row of runtime parameter bindings, then assemble
Expand Down
17 changes: 0 additions & 17 deletions crates/graphcal-eval/src/eval/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,23 +226,6 @@ impl Value {
}
}

/// Get the dimension of a real or complex quantity.
///
/// # Errors
///
/// Returns [`ValueError`] if this is not a `Quantity` or `Complex` value.
pub fn dimension(&self) -> Result<Dimension, ValueError> {
match self {
Self::Quantity { dimension, .. } | Self::Complex { dimension, .. } => {
Ok(dimension.clone())
}
other => Err(ValueError {
expected: "Quantity or Complex",
actual: other.variant_description(),
}),
}
}

/// Get the value formatted for display: in display units if available, otherwise SI.
///
/// # Errors
Expand Down
6 changes: 0 additions & 6 deletions crates/graphcal-eval/src/host_fns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ impl HostArray {
pub(crate) fn values(&self) -> &[f64] {
&self.values
}

/// Consume into shape and values.
#[must_use]
pub fn into_parts(self) -> (Vec<usize>, Vec<f64>) {
(self.shape, self.values)
}
}

/// One raw value a host function returns, SI-flat.
Expand Down
Loading