Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove `impl_internal_actions` macro

Antonio Scandurra1c5376a560b5
diff --git a/crates/gpui/src/app/action.rs b/crates/gpui/src/app/action.rs
index 0b035f12c34..5b4df68a651 100644
--- a/crates/gpui/src/app/action.rs
+++ b/crates/gpui/src/app/action.rs
@@ -66,24 +66,6 @@ macro_rules! impl_actions {
};
}
-/// Implement the `Action` trait for a set of existing types that are
-/// not intended to be constructed via a keymap file, but only dispatched
-/// internally.
-#[macro_export]
-macro_rules! impl_internal_actions {
- ($namespace:path, [ $($name:ident),* $(,)? ]) => {
- $(
- $crate::__impl_action! {
- $namespace,
- $name,
- fn from_json_str(_: &str) -> $crate::anyhow::Result<Box<dyn $crate::Action>> {
- Err($crate::anyhow::anyhow!("internal action"))
- }
- }
- )*
- };
-}
-
#[doc(hidden)]
#[macro_export]
macro_rules! __impl_action {