Skip to content

Commit

Permalink
refactor(macro): removing useless constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFola committed Oct 21, 2024
1 parent 414b83b commit 099e183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions include/Ark/Compiler/Macros/MacroScope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file MacroScope.hpp
* @author Alexandre Plateau ([email protected])
* @brief Defines tools to handle macro definitions
* @version 0.2
* @version 1.0
* @date 2023-02-18
*
* @copyright Copyright (c) 2023-2024
Expand All @@ -22,8 +22,6 @@ namespace Ark::internal
class MacroScope
{
public:
MacroScope();

/**
* @brief Construct a new MacroScope object given a depth in the scope hierarchy
*
Expand Down Expand Up @@ -74,7 +72,7 @@ namespace Ark::internal

private:
std::unordered_map<std::string, Node> m_macros;
unsigned int m_depth;
unsigned int m_depth { 0 };
};
}

Expand Down
4 changes: 0 additions & 4 deletions src/arkreactor/Compiler/Macros/MacroScope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

namespace Ark::internal
{
MacroScope::MacroScope() :
m_depth(0)
{}

MacroScope::MacroScope(const unsigned int depth) :
m_depth(depth)
{}
Expand Down

0 comments on commit 099e183

Please sign in to comment.