File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,11 +154,6 @@ void Capsule::RemoveCallbackById(std::uint32_t id) {
154154 if (locals::plugin_hook_ids.end () != plugin_hooks_it) {
155155 plugin_hooks_it->second .erase (id);
156156 }
157- if (cb.remove_callback != nullptr && cb.remove_callback ->IsRunnable ()) {
158- cb.remove_callback ->PushCell (id);
159- cell_t ignore;
160- cb.remove_callback ->Execute (&ignore);
161- }
162157 locals::hook_callbacks.erase (id);
163158
164159 if (rm_callback != nullptr && rm_callback->IsRunnable ()) {
@@ -185,11 +180,6 @@ void Capsule::RemoveCallbackByPlugin(SourcePawn::IPluginContext* default_context
185180 cb.associated_capsule ->_pre_hooks .erase (id);
186181 cb.associated_capsule ->_post_hooks .erase (id);
187182 }
188- if (cb.remove_callback != nullptr && cb.remove_callback ->IsRunnable ()) {
189- cb.remove_callback ->PushCell (id);
190- cell_t ignore;
191- cb.remove_callback ->Execute (&ignore);
192- }
193183 locals::hook_callbacks.erase (id);
194184
195185 if (rm_callback != nullptr && rm_callback->IsRunnable ()) {
You can’t perform that action at this time.
0 commit comments