mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove deprecated CompilerStack.addSources
This commit is contained in:
parent
72c0e44907
commit
cca73f9354
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user