Просмотр исходного кода

runtime: Remove unused acl_deny function

parazyd 2 лет назад
Родитель
Сommit
001bdecb53
1 измененных файлов с 0 добавлено и 9 удалено
  1. 0 9
      src/runtime/import/acl.rs

+ 0 - 9
src/runtime/import/acl.rs

@@ -29,12 +29,3 @@ pub(super) fn acl_allow(env: &Env, sections: &[ContractSection]) -> Result<()> {
 
     Ok(())
 }
-
-/// Return an error if the current Env section is in the sections list.
-pub(super) fn acl_deny(env: &Env, sections: &[ContractSection]) -> Result<()> {
-    if sections.contains(&env.contract_section) {
-        return Err(Error::WasmFunctionAclDenied)
-    }
-
-    Ok(())
-}