@@ -97,54 +97,6 @@ impl Namespace {
97
97
}
98
98
}
99
99
100
- // impl RegisterNamespacedFunction for ScriptFunctionRegistry {
101
- // fn register_namespaced_function<S, N, F, M>(&mut self, name: N, function: F)
102
- // where
103
- // N: Into<Cow<'static, str>>,
104
- // S: IntoNamespace,
105
- // F: ScriptFunction<'static, M>,
106
- // {
107
- // self.register(S::into_namespace(), name, function);
108
- // }
109
- // }
110
-
111
- // impl GetNamespacedFunction for ScriptFunctionRegistry {
112
- // fn iter_overloads_namespaced<N>(
113
- // &self,
114
- // name: N,
115
- // namespace: Namespace,
116
- // ) -> impl Iterator<Item = &DynamicScriptFunction>
117
- // where
118
- // N: Into<Cow<'static, str>>,
119
- // {
120
- // let cow: Cow<'static, str> = name.into();
121
- // let function_name = namespace.function_name(cow);
122
- // self.iter_overloads(function_name)
123
- // }
124
-
125
- // fn get_namespaced_function<N>(
126
- // &self,
127
- // name: N,
128
- // namespace: Namespace,
129
- // ) -> Option<&DynamicScriptFunction>
130
- // where
131
- // N: Into<Cow<'static, str>>,
132
- // {
133
- // let cow: Cow<'static, str> = name.into();
134
- // let function_name = namespace.function_name(cow);
135
- // self.get_first(&function_name)
136
- // }
137
-
138
- // fn has_namespaced_function<N>(&self, name: N, namespace: Namespace) -> bool
139
- // where
140
- // N: Into<Cow<'static, str>>,
141
- // {
142
- // let cow: Cow<'static, str> = name.into();
143
- // let function_name = namespace.function_name(cow);
144
- // self.contains(&function_name)
145
- // }
146
- // }
147
-
148
100
pub struct NamespaceBuilder < ' a , N > {
149
101
namespace : PhantomData < N > ,
150
102
pub world : & ' a mut World ,
0 commit comments