Remove deprecated CompilerStack.addSources

This commit is contained in:
Alex Beregszaszi 2019-03-25 15:12:06 +00:00
parent 72c0e44907
commit cca73f9354
2 changed files with 0 additions and 13 deletions

View File

@ -160,15 +160,6 @@ void CompilerStack::reset(bool _keepSources)
m_errorReporter.clear();
}
bool CompilerStack::addSource(string const& _name, string const& _content)
{
bool existed = m_sources.count(_name) != 0;
reset(true);
m_sources[_name].scanner = make_shared<Scanner>(CharStream(_content, _name));
m_stackState = SourcesSet;
return existed;
}
void CompilerStack::setSources(StringMap const& _sources)
{
if (m_stackState == SourcesSet)

View File

@ -148,10 +148,6 @@ public:
/// Must be set before parsing.
void useMetadataLiteralSources(bool _metadataLiteralSources);
/// Adds a source object (e.g. file) to the parser. After this, parse has to be called again.
/// @returns true if a source object by the name already existed and was replaced.
bool addSource(std::string const& _name, std::string const& _content);
/// Sets the sources. Must be set before parsing.
void setSources(StringMap const& _sources);