소스 검색

runtime: Remove unused acl_deny function

parazyd 2 년 전
부모
커밋
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(())
     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(())
-}