Skip to content

Commit

Permalink
Remove unused resources (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Jan 5, 2024
1 parent 911aac4 commit 708a18d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .run/spice.run.xml
@@ -1,5 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="spice" type="CMakeRunConfiguration" factoryName="Application" PROGRAM_PARAMS="build -O3 -lto -d -m release ../../media/test-project/test.spice" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="Spice" TARGET_NAME="spice" CONFIG_NAME="Debug" RUN_TARGET_PROJECT_NAME="Spice" RUN_TARGET_NAME="spice">
<configuration default="false" name="spice" type="CMakeRunConfiguration" factoryName="Application" PROGRAM_PARAMS="build -O2 -d ../../media/test-project/test.spice" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="Spice" TARGET_NAME="spice" CONFIG_NAME="Debug" RUN_TARGET_PROJECT_NAME="Spice" RUN_TARGET_NAME="spice">
<envs>
<env name="LLVM_LIB_DIR" value="D:/LLVM/build-release/lib" />
<env name="LLVM_INCLUDE_DIR" value="D:/LLVM/llvm/include" />
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -135,7 +135,6 @@ set(SOURCES
exception/AntlrThrowingErrorListener.cpp
exception/AntlrThrowingErrorListener.h
# Utility
util/BlockAllocator.cpp
util/BlockAllocator.h
util/CommonUtil.cpp
util/CommonUtil.h
Expand Down
7 changes: 4 additions & 3 deletions src/ast/AbstractASTVisitor.cpp
Expand Up @@ -9,9 +9,10 @@ namespace spice::compiler {
std::any AbstractASTVisitor::visit(ASTNode *node) { return node->accept(this); }

std::any AbstractASTVisitor::visitChildren(ASTNode *node) {
for (ASTNode *child : node->children)
if (child != nullptr)
child->accept(this);
for (ASTNode *child : node->children) {
assert(child != nullptr);
child->accept(this);
}
return nullptr;
}

Expand Down
11 changes: 0 additions & 11 deletions src/util/BlockAllocator.cpp

This file was deleted.

0 comments on commit 708a18d

Please sign in to comment.