# HG changeset patch # User Jonas Hultén # Date 1726893254 -7200 # Sat Sep 21 06:34:14 2024 +0200 # Branch develop # Node ID 94c5349e479030cfe697acdda58ccd38ba8eb76b # Parent 8fa2ea67c4bf96acc10ccbe44d12d25146996f30 Removed unnecessary cpp file. diff --git a/jasm/syntax/syntax_state.cpp b/jasm/syntax/syntax_state.cpp deleted file mode 100644 --- a/jasm/syntax/syntax_state.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "pch.h" - -#include - -namespace jasm -{ - -SyntaxState::SyntaxState() - : macro_depth(0) - , subroutine_depth(0) -{ -} - -} diff --git a/jasm/syntax/syntax_state.h b/jasm/syntax/syntax_state.h --- a/jasm/syntax/syntax_state.h +++ b/jasm/syntax/syntax_state.h @@ -9,11 +9,9 @@ /// This class keeps the state of the syntax analysis that persists between statements. struct SyntaxState { - SyntaxState(); - std::set sections; ///< Set with string hashes for section names, used to detect duplicate names. - int macro_depth; ///< Number of nested macro definitions. - int subroutine_depth; ///< Number of nested subroutine definitions (only one allowed). + int macro_depth = 0; ///< Number of nested macro definitions. + int subroutine_depth = 0; ///< Number of nested subroutine definitions (only one allowed). }; /// @}