From 49414e4fa3fbb08b838d3f2d2914aa06a078599c Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Fri, 19 Jan 2024 16:53:48 -0300 Subject: [PATCH] refactor: remove convertToNoexceptKind --- src/lib/AST/ASTVisitorHelpers.hpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/lib/AST/ASTVisitorHelpers.hpp b/src/lib/AST/ASTVisitorHelpers.hpp index da233e8c7..5fa8e43ef 100644 --- a/src/lib/AST/ASTVisitorHelpers.hpp +++ b/src/lib/AST/ASTVisitorHelpers.hpp @@ -140,22 +140,6 @@ convertToNoexceptKind( } } -NoexceptKind -convertToNoexceptKind( - CanThrowResult kind) -{ - using OldKind = CanThrowResult; - using NewKind = NoexceptKind; - switch(kind) - { - case OldKind::CT_Can: return NewKind::False; - case OldKind::CT_Cannot: return NewKind::True; - case OldKind::CT_Dependent: return NewKind::Dependent; - default: - MRDOCS_UNREACHABLE(); - } -} - OperatorKind convertToOperatorKind( OverloadedOperatorKind kind)