Remove | 移除没用的东西

This commit is contained in:
shenjack 2023-12-23 01:38:08 +08:00
parent 5ade8b97b8
commit 109ff00bb1
Signed by: shenjack
GPG Key ID: 7B1134A979775551
4 changed files with 3 additions and 26 deletions

View File

@ -181,9 +181,3 @@ pub struct DRComponentProps<'a, T> {
// 附加属性
pub attr: HashMap<&'a str, T>,
}
impl<'a, T> DRComponentProps<'a, T> {
pub fn fetch_data(&self, name: &str) -> Option<&T> {
self.attr.get(name)
}
}

View File

@ -555,8 +555,7 @@ impl SR1PartDataAttr {
current_stage: Option<i32>,
steps: Option<Vec<Vec<(IdType, bool)>>>,
extension: Option<f64>,
chute_x: Option<f64>,
chute_y: Option<f64>,
chute_pos: (Option<f64>, Option<f64>),
chute_height: Option<f64>,
chute_angle: Option<f64>,
inflate: Option<bool>,
@ -572,8 +571,8 @@ impl SR1PartDataAttr {
current_stage,
steps,
extension,
chute_x,
chute_y,
chute_x: chute_pos.0,
chute_y: chute_pos.1,
chute_height,
chute_angle,
inflate,

View File

@ -15,14 +15,6 @@ mod xml_reader;
use pyo3::prelude::*;
enum LoadingState {
Initializing,
WaitingForStart,
PreStarting,
Running,
Cleaning,
}
#[pyfunction]
fn get_version_str() -> String {
"0.3.0".to_string()
@ -34,9 +26,6 @@ fn test_call(py_obj: &PyAny) -> PyResult<bool> {
Ok(true)
}
/// A Python module implemented in Rust. The name of this function must match
/// the `lib.name` setting in the `Cargo.toml`, else Python will not be able to
/// import the module.
#[pymodule]
#[pyo3(name = "Difficult_Rocket_rs")]
fn module_init(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
@ -54,7 +43,3 @@ fn module_init(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
// m.add_class::<python::editor::EditorArea>()?;
Ok(())
}
// pub fn run() {}
// fn init() {}

View File

@ -4,7 +4,6 @@
# All rights reserved
# -------------------------------
import warnings
import traceback
from typing import Optional