Commit 82f8be5b authored by jan.koester's avatar jan.koester
Browse files

cleanup

parent cc7da28e
Loading
Loading
Loading
Loading
+0 −7
Changes for parser.cpp: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -176,7 +176,6 @@ bool Parser::parse_file(const std::string& filepath, Makefile& mf) {
bool Parser::parse_string(const std::string& content, Makefile& mf) {
    std::vector<std::string> logical_lines;
    std::string current_line;
    bool in_recipe = false;
    bool in_continuation = false;
    bool line_is_recipe = false;   // does the logical line being built start as a recipe (tab-indented)?

@@ -216,12 +215,6 @@ bool Parser::parse_string(const std::string& content, Makefile& mf) {
            current_line.clear();
            in_continuation = false;
        }

        // Track whether next line might be recipe
        if (!in_continuation) {
            std::string t = trim(current_line.empty() ? logical_lines.back() : current_line);
            in_recipe = false;
        }
    }
    if (!current_line.empty()) {
        logical_lines.push_back(current_line);