Skip to content

Commit 19443d7

Browse files
committed
Revert "Fixing missing lifecycle impl"
This reverts commit 8a81d36.
1 parent 8a81d36 commit 19443d7

File tree

2 files changed

+4
-29
lines changed

2 files changed

+4
-29
lines changed

programs/mpl-core/src/plugins/lifecycle.rs

-24
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,6 @@ impl PluginType {
196196
}
197197
}
198198

199-
/// Check permissions for the execute lifecycle event.
200-
pub fn check_execute(plugin_type: &PluginType) -> CheckResult {
201-
#[allow(clippy::match_single_binding)]
202-
match plugin_type {
203-
_ => CheckResult::None,
204-
}
205-
}
206-
207199
/// Check permissions for the add external plugin adapter lifecycle event.
208200
pub fn check_add_external_plugin_adapter(plugin_type: &PluginType) -> CheckResult {
209201
#[allow(clippy::match_single_binding)]
@@ -398,14 +390,6 @@ impl Plugin {
398390
plugin.inner().validate_decompress(ctx)
399391
}
400392

401-
/// Validate the execute lifecycle event.
402-
pub(crate) fn validate_execute(
403-
plugin: &Plugin,
404-
ctx: &PluginValidationContext,
405-
) -> Result<ValidationResult, ProgramError> {
406-
plugin.inner().validate_execute(ctx)
407-
}
408-
409393
/// Validate the add external plugin adapter lifecycle event.
410394
pub(crate) fn validate_add_external_plugin_adapter(
411395
plugin: &Plugin,
@@ -642,14 +626,6 @@ pub(crate) trait PluginValidation {
642626
abstain!()
643627
}
644628

645-
/// Validate the execute lifecycle action.
646-
fn validate_execute(
647-
&self,
648-
_ctx: &PluginValidationContext,
649-
) -> Result<ValidationResult, ProgramError> {
650-
abstain!()
651-
}
652-
653629
/// Validate the update_plugin lifecycle action.
654630
fn validate_update_external_plugin_adapter(
655631
&self,

programs/mpl-core/src/processor/update.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,10 @@ fn update<'a>(
205205
if plugin_set.contains(&PluginType::UpdateDelegate) {
206206
// Fetch the update delegate on the new collection.
207207
// Do not ignore the return plugin as we need to check the additional delegates.
208-
let (plugin_authority, fetched_plugin, _) =
209-
fetch_plugin::<CollectionV1, UpdateDelegate>(
210-
new_collection_account,
211-
PluginType::UpdateDelegate,
212-
)?;
208+
let (plugin_authority, fetched_plugin, _) = fetch_plugin::<CollectionV1, UpdateDelegate>(
209+
new_collection_account,
210+
PluginType::UpdateDelegate,
211+
)?;
213212

214213
if (assert_collection_authority(
215214
&new_collection,

0 commit comments

Comments
 (0)