Skip to content

Commit f3a8fee

Browse files
committed
Remove dead code: is_pass_by_ref(), needs_lifetime()
1 parent 387bd81 commit f3a8fee

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

godot-codegen/src/models/domain.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -663,28 +663,6 @@ impl RustTy {
663663
other => quote! { -> #other },
664664
}
665665
}
666-
667-
pub fn is_pass_by_ref(&self) -> bool {
668-
matches!(
669-
self,
670-
RustTy::BuiltinIdent {
671-
arg_passing: ArgPassing::ByRef,
672-
..
673-
} | RustTy::BuiltinArray { .. }
674-
| RustTy::EngineArray { .. }
675-
)
676-
}
677-
678-
pub fn needs_lifetime(&self) -> bool {
679-
matches!(
680-
self,
681-
RustTy::BuiltinIdent {
682-
arg_passing: ArgPassing::ByRef | ArgPassing::ImplAsArg,
683-
..
684-
} | RustTy::BuiltinArray { .. }
685-
| RustTy::EngineArray { .. }
686-
)
687-
}
688666
}
689667

690668
impl ToTokens for RustTy {

godot-core/src/meta/rpc_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::classes::Node;
1212
use crate::meta::{AsArg, ToGodot};
1313
use crate::{arg_into_ref, dict};
1414

15-
/// Configuration for a remote procedure call, typically used with `#[rpc(config = ...)]`.
15+
/// Configuration for a remote procedure call, used with `#[rpc(config = ...)]`.
1616
///
1717
/// See [Godot documentation](https://docs.godotengine.org/en/stable/tutorials/networking/high_level_multiplayer.html#remote-procedure-calls).
1818
#[derive(Copy, Clone, Debug)]

0 commit comments

Comments
 (0)