mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Remove unnecessary helper function
This commit is contained in:
parent
5e39e211c2
commit
28f9d3cc71
2 changed files with 4 additions and 5 deletions
|
@ -243,10 +243,6 @@ impl Document {
|
|||
self.exports.iter().filter_map(|e| e.1.as_ref().left()).filter(|c| !c.is_global()).cloned()
|
||||
}
|
||||
|
||||
pub fn exposed_structs_and_enums(&self) -> Vec<Type> {
|
||||
self.used_types.borrow().structs_and_enums.clone()
|
||||
}
|
||||
|
||||
/// This is the component that is going to be instantiated by the interpreter
|
||||
pub fn last_exported_component(&self) -> Option<Rc<Component>> {
|
||||
self.exports
|
||||
|
|
|
@ -875,11 +875,14 @@ pub async fn load(
|
|||
diag.push_error_with_span("No component found".into(), Default::default());
|
||||
};
|
||||
|
||||
#[cfg(feature = "internal")]
|
||||
let structs_and_enums = doc.used_types.borrow().structs_and_enums.clone();
|
||||
|
||||
CompilationResult {
|
||||
diagnostics: diag.into_iter().collect(),
|
||||
components,
|
||||
#[cfg(feature = "internal")]
|
||||
structs_and_enums: doc.exposed_structs_and_enums(),
|
||||
structs_and_enums,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue