summaryrefslogtreecommitdiff
path: root/core/plugins.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/plugins.rs')
-rw-r--r--core/plugins.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/core/plugins.rs b/core/plugins.rs
deleted file mode 100644
index a423790bc..000000000
--- a/core/plugins.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-// TODO(ry) This plugin module is superfluous. Try to remove definitions for
-// "init_fn!", "PluginInitFn", and "PluginInitContext".
-
-use crate::ops::OpDispatcher;
-
-pub type PluginInitFn = fn(context: &mut dyn PluginInitContext);
-
-pub trait PluginInitContext {
- fn register_op(
- &mut self,
- name: &str,
- op: Box<OpDispatcher>, // TODO(ry) rename to dispatcher, not op.
- );
-}
-
-#[macro_export]
-macro_rules! init_fn {
- ($fn:path) => {
- #[no_mangle]
- pub fn deno_plugin_init(context: &mut dyn PluginInitContext) {
- $fn(context)
- }
- };
-}