Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'start building symbol table' debug message #1135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions pynestml/utils/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class MessageCode(Enum):
A mapping between codes and the corresponding messages.
"""
START_PROCESSING_FILE = 0
START_SYMBOL_TABLE_BUILDING = 1
FUNCTION_CALL_TYPE_ERROR = 2
TYPE_NOT_DERIVABLE = 3
IMPLICIT_CAST = 4
Expand Down Expand Up @@ -222,15 +221,6 @@ def get_implicit_magnitude_conversion(cls, lhs, rhs, conversion_factor):
lhs.print_symbol(), rhs.print_symbol(), conversion_factor)
return MessageCode.IMPLICIT_CAST, message

@classmethod
def get_start_building_symbol_table(cls):
"""
Returns a message that the building for a model has been started.
:return: a message
:rtype: (MessageCode,str)
"""
return MessageCode.START_SYMBOL_TABLE_BUILDING, 'Start building symbol table!'

@classmethod
def get_function_call_implicit_cast(
cls,
Expand Down
3 changes: 0 additions & 3 deletions pynestml/visitors/ast_symbol_table_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ def visit_model(self, node: ASTModel) -> None:
Used to visit a single model and create the corresponding global as well as local scopes.
"""
Logger.set_current_node(node)
code, message = Messages.get_start_building_symbol_table()
Logger.log_message(node=node, code=code, error_position=node.get_source_position(),
message=message, log_level=LoggingLevel.DEBUG)
scope = Scope(scope_type=ScopeType.GLOBAL,
source_position=node.get_source_position())
node.update_scope(scope)
Expand Down
Loading