Skip to content

Commit 099e183

Browse files
committed
refactor(macro): removing useless constructor
1 parent 414b83b commit 099e183

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

include/Ark/Compiler/Macros/MacroScope.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file MacroScope.hpp
33
* @author Alexandre Plateau ([email protected])
44
* @brief Defines tools to handle macro definitions
5-
* @version 0.2
5+
* @version 1.0
66
* @date 2023-02-18
77
*
88
* @copyright Copyright (c) 2023-2024
@@ -22,8 +22,6 @@ namespace Ark::internal
2222
class MacroScope
2323
{
2424
public:
25-
MacroScope();
26-
2725
/**
2826
* @brief Construct a new MacroScope object given a depth in the scope hierarchy
2927
*
@@ -74,7 +72,7 @@ namespace Ark::internal
7472

7573
private:
7674
std::unordered_map<std::string, Node> m_macros;
77-
unsigned int m_depth;
75+
unsigned int m_depth { 0 };
7876
};
7977
}
8078

src/arkreactor/Compiler/Macros/MacroScope.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
namespace Ark::internal
44
{
5-
MacroScope::MacroScope() :
6-
m_depth(0)
7-
{}
8-
95
MacroScope::MacroScope(const unsigned int depth) :
106
m_depth(depth)
117
{}

0 commit comments

Comments
 (0)