Skip to content

Commit

Permalink
refactor: removing dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFola committed Oct 20, 2024
1 parent b7e365c commit acd909a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
8 changes: 0 additions & 8 deletions include/Ark/Compiler/Macros/Executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ namespace Ark::internal
*/
void setWithFileAttributes(const Node origin, Node& output, const Node& macro);

/**
* @brief Return std::nullopt if the function isn't registered, otherwise return its node
*
* @param name function name
* @return std::optional<Node>
*/
[[nodiscard]] std::optional<Node> lookupDefinedFunction(const std::string& name) const;

/**
* @brief Find the nearest macro matching a giving name
*
Expand Down
4 changes: 0 additions & 4 deletions src/arkreactor/Compiler/AST/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,6 @@ namespace Ark::internal
case NodeType::Unused:
os << "Unused:" << string();
break;

default:
os << "~\\._./~";
break;
}
return os;
}
Expand Down
5 changes: 0 additions & 5 deletions src/arkreactor/Compiler/Macros/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ namespace Ark::internal
output.setPos(origin.line(), origin.col());
}

std::optional<Node> MacroExecutor::lookupDefinedFunction(const std::string& name) const
{
return m_processor->lookupDefinedFunction(name);
}

const Node* MacroExecutor::findNearestMacro(const std::string& name) const
{
return m_processor->findNearestMacro(name);
Expand Down

0 comments on commit acd909a

Please sign in to comment.