mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove unused interfaces from CompilerStack
This commit is contained in:
1 parent
887823dca6
commit
fa5a7efb45
3 files changed
+7
-39
No files matched your search
@@ -106,12 +106,6 @@ bool CompilerStack::addSource(string const& _name, string const& _content, bool
|
||||
return existed;
|
||||
}
|
||||
|
||||
void CompilerStack::setSource(string const& _sourceCode)
|
||||
{
|
||||
reset();
|
||||
addSource("", _sourceCode);
|
||||
}
|
||||
|
||||
bool CompilerStack::parse()
|
||||
{
|
||||
//reset
|
||||
@@ -252,23 +246,11 @@ bool CompilerStack::analyze()
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CompilerStack::parse(string const& _sourceCode)
|
||||
{
|
||||
setSource(_sourceCode);
|
||||
return parse();
|
||||
}
|
||||
|
||||
bool CompilerStack::parseAndAnalyze()
|
||||
{
|
||||
return parse() && analyze();
|
||||
}
|
||||
|
||||
bool CompilerStack::parseAndAnalyze(std::string const& _sourceCode)
|
||||
{
|
||||
setSource(_sourceCode);
|
||||
return parseAndAnalyze();
|
||||
}
|
||||
|
||||
vector<string> CompilerStack::contractNames() const
|
||||
{
|
||||
if (m_stackState < AnalysisSuccessful)
|
||||
@@ -300,11 +282,6 @@ bool CompilerStack::compile(bool _optimize, unsigned _runs, map<string, h160> co
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CompilerStack::compile(string const& _sourceCode, bool _optimize, unsigned _runs)
|
||||
{
|
||||
return parseAndAnalyze(_sourceCode) && compile(_optimize, _runs);
|
||||
}
|
||||
|
||||
void CompilerStack::link()
|
||||
{
|
||||
for (auto& contract: m_contracts)
|
||||
|
||||
Reference in new issue
Block a user