Skip to content

Commit b1f0e5f

Browse files
committed
Python: Remove unused PyValueRef type
1 parent d443923 commit b1f0e5f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

api/python/value.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,12 @@ use std::collections::HashMap;
1010

1111
#[gen_stub_pyclass]
1212
pub struct PyValue(pub slint_interpreter::Value);
13-
struct PyValueRef<'a>(&'a slint_interpreter::Value);
1413

1514
impl<'py> IntoPyObject<'py> for PyValue {
1615
type Target = PyAny;
1716
type Output = Bound<'py, Self::Target>;
1817
type Error = PyErr;
1918

20-
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> {
21-
// Share the conversion code below that operates on the reference
22-
PyValueRef(&self.0).into_pyobject(py)
23-
}
24-
}
25-
26-
impl<'a, 'py> IntoPyObject<'py> for PyValueRef<'a> {
27-
type Target = PyAny;
28-
type Output = Bound<'py, Self::Target>;
29-
type Error = PyErr;
30-
3119
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> {
3220
match &self.0 {
3321
slint_interpreter::Value::Void => ().into_bound_py_any(py),

0 commit comments

Comments
 (0)