From ada81b7abc2f738080d5651642b0828bbbca0d0f Mon Sep 17 00:00:00 2001 From: Sullivan SENECHAL Date: Wed, 18 May 2016 10:24:38 +0200 Subject: [PATCH] Remove useless try/catch/throw codes Because this is completly useless. --- Security/Handler/AclSecurityHandler.php | 2 -- Security/Handler/RoleSecurityHandler.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/Security/Handler/AclSecurityHandler.php b/Security/Handler/AclSecurityHandler.php index 0887573312..3aadae9a3f 100644 --- a/Security/Handler/AclSecurityHandler.php +++ b/Security/Handler/AclSecurityHandler.php @@ -137,8 +137,6 @@ public function isGranted(AdminInterface $admin, $attributes, $object = null) return $this->authorizationChecker->isGranted($this->superAdminRoles) || $this->authorizationChecker->isGranted($attributes, $object); } catch (AuthenticationCredentialsNotFoundException $e) { return false; - } catch (\Exception $e) { - throw $e; } } diff --git a/Security/Handler/RoleSecurityHandler.php b/Security/Handler/RoleSecurityHandler.php index b9204e7a86..fee7d9d1f8 100644 --- a/Security/Handler/RoleSecurityHandler.php +++ b/Security/Handler/RoleSecurityHandler.php @@ -67,8 +67,6 @@ public function isGranted(AdminInterface $admin, $attributes, $object = null) || $this->authorizationChecker->isGranted($attributes, $object); } catch (AuthenticationCredentialsNotFoundException $e) { return false; - } catch (\Exception $e) { - throw $e; } }