Skip to content

Commit

Permalink
fixup: unused function, \n at eof
Browse files Browse the repository at this point in the history
  • Loading branch information
sbird committed Mar 31, 2024
1 parent 5cfb9cd commit 5609af3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions tools/preproc/asm_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,13 +718,6 @@ std::string AsmFile::ReadIdentifier()
return std::string(&m_buffer[start], m_pos - start);
}

void AsmFile::OutputHeaderLineIdentifier(long current, long old, std::string filename)
{
if (current == old)
return;
std::printf("#%ld \"%s\"", current, filename.c_str());
}

long AsmFile::ReadInteger(std::string filename, long line)
{
bool negate = false;
Expand Down Expand Up @@ -763,4 +756,4 @@ long AsmFile::ReadInteger(std::string filename, long line)
}

return negate ? -n : n;
}
}
1 change: 0 additions & 1 deletion tools/preproc/asm_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ class AsmFile
int SkipWhitespaceAndEol();
int FindLastLineNumber(std::string& filename);
std::string ReadIdentifier();
void OutputHeaderLineIdentifier(long current, long old, std::string filename);
long ReadInteger(std::string filename, long line);
};

Expand Down

0 comments on commit 5609af3

Please sign in to comment.