MCPcopy Create free account
hub / github.com/Tylemagne/Gopher360 / removeComment

Method removeComment

Windows/Gopher/Gopher/ConfigFile.cpp:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <Windows.h>
5
6void ConfigFile::removeComment(std::string &line) const
7{
8 if (line.find('#') != line.npos)
9 line.erase(line.find('#'));
10}
11
12bool ConfigFile::onlyWhitespace(const std::string &line) const
13{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected