Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Nov 28, 2024
1 parent d0533f6 commit 1ce3162
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions nautilus_core/model/src/python/data/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,27 +185,6 @@ impl InstrumentStatus {
format!("{}:{}", PY_MODULE_MODEL, stringify!(InstrumentStatus))
}

// TODO: Implement for `Data`
/// Creates a `PyCapsule` containing a raw pointer to a `Data::Quote` object.
///
/// This function takes the current object (assumed to be of a type that can be represented as
/// `Data::Quote`), and encapsulates a raw pointer to it within a `PyCapsule`.
///
/// # Safety
///
/// This function is safe as long as the following conditions are met:
/// - The `Data::Quote` object pointed to by the capsule must remain valid for the lifetime of the capsule.
/// - The consumer of the capsule must ensure proper handling to avoid dereferencing a dangling pointer.
///
/// # Panics
///
/// The function will panic if the `PyCapsule` creation fails, which can occur if the
/// `Data::Quote` object cannot be converted into a raw pointer.
// #[pyo3(name = "as_pycapsule")]
// fn py_as_pycapsule(&self, py: Python<'_>) -> PyObject {
// data_to_pycapsule(py, Data::Quote(*self))
// }

/// Return a dictionary representation of the object.
#[pyo3(name = "as_dict")]
fn py_as_dict(&self, py: Python<'_>) -> PyResult<Py<PyDict>> {
Expand Down

0 comments on commit 1ce3162

Please sign in to comment.