aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/CompilerStack.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-06-01 21:33:35 +0800
committerGitHub <noreply@github.com>2017-06-01 21:33:35 +0800
commit96de7a83264e3926831889bf48a897591efb3ff5 (patch)
treec45c41ac4eef9838317f0b34bab24394bd9e2f3a /libsolidity/interface/CompilerStack.h
parentd4a57d81ba7f2a9b5db57397d36f1a17adb4b142 (diff)
parent998ca552b8966d67bbbc7482e972563efade9a80 (diff)
downloaddexon-solidity-96de7a83264e3926831889bf48a897591efb3ff5.tar
dexon-solidity-96de7a83264e3926831889bf48a897591efb3ff5.tar.gz
dexon-solidity-96de7a83264e3926831889bf48a897591efb3ff5.tar.bz2
dexon-solidity-96de7a83264e3926831889bf48a897591efb3ff5.tar.lz
dexon-solidity-96de7a83264e3926831889bf48a897591efb3ff5.tar.xz
dexon-solidity-96de7a83264e3926831889bf48a897591efb3ff5.tar.zst
dexon-solidity-96de7a83264e3926831889bf48a897591efb3ff5.zip
Merge pull request #2335 from ethereum/compilerstack-cleanup
Remove obsolete CompilerStack methods
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r--libsolidity/interface/CompilerStack.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h
index 76d36c7b..bffdeabd 100644
--- a/libsolidity/interface/CompilerStack.h
+++ b/libsolidity/interface/CompilerStack.h
@@ -117,7 +117,6 @@ public:
bool parseAndAnalyze(std::string const& _sourceCode);
/// @returns a list of the contract names in the sources.
std::vector<std::string> contractNames() const;
- std::string defaultContractName() const;
/// Compiles the source units that were previously added and parsed.
/// @returns false on error.
@@ -159,11 +158,6 @@ public:
/// @returns either the contract's name or a mixture of its name and source file, sanitized for filesystem use
std::string const filesystemFriendlyName(std::string const& _contractName) const;
- /// @returns hash of the runtime bytecode for the contract, i.e. the code that is
- /// returned by the constructor or the zero-h256 if the contract still needs to be linked or
- /// does not have runtime code.
- dev::h256 contractCodeHash(std::string const& _contractName = "") const;
-
/// Streams a verbose version of the assembly to @a _outStream.
/// @arg _sourceCodes is the map of input files to source code strings
/// @arg _inJsonFromat shows whether the out should be in Json format
@@ -197,13 +191,6 @@ public:
/// does not exist.
ContractDefinition const& contractDefinition(std::string const& _contractName) const;
- /// @returns the offset of the entry point of the given function into the list of assembly items
- /// or zero if it is not found or does not exist.
- size_t functionEntryPoint(
- std::string const& _contractName,
- FunctionDefinition const& _function
- ) const;
-
/// Helper function for logs printing. Do only use in error cases, it's quite expensive.
/// line and columns are numbered starting from 1 with following order:
/// start line, start column, end line, end column
@@ -272,6 +259,13 @@ private:
Json::Value const& contractABI(Contract const&) const;
Json::Value const& natspec(Contract const&, DocumentationType _type) const;
+ /// @returns the offset of the entry point of the given function into the list of assembly items
+ /// or zero if it is not found or does not exist.
+ size_t functionEntryPoint(
+ std::string const& _contractName,
+ FunctionDefinition const& _function
+ ) const;
+
struct Remapping
{
std::string context;