mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove dead code and clarify throw.
This commit is contained in:
parent
b25598126e
commit
966367305a
@ -457,7 +457,7 @@ If used properly, analysis tools can evaluate your contract to identify the cond
|
|||||||
There are two other ways to trigger exceptions: The ``revert`` function can be used to flag an error and
|
There are two other ways to trigger exceptions: The ``revert`` function can be used to flag an error and
|
||||||
revert the current call. It is possible to provide a string message containing details about the error
|
revert the current call. It is possible to provide a string message containing details about the error
|
||||||
that will be passed back to the caller.
|
that will be passed back to the caller.
|
||||||
The ``throw`` keyword can also be used as an alternative to ``revert()``, but is deprecated.
|
The deprecated keyword ``throw`` can also be used as an alternative to ``revert()`` (but only without error message).
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
From version 0.4.13 the ``throw`` keyword is deprecated and will be phased out in the future.
|
From version 0.4.13 the ``throw`` keyword is deprecated and will be phased out in the future.
|
||||||
|
@ -157,7 +157,6 @@ BOOST_AUTO_TEST_CASE(location_test)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
shared_ptr<string const> n = make_shared<string>("");
|
|
||||||
AssemblyItems items = compileContract(sourceCode);
|
AssemblyItems items = compileContract(sourceCode);
|
||||||
vector<SourceLocation> locations =
|
vector<SourceLocation> locations =
|
||||||
vector<SourceLocation>(24, SourceLocation(2, 75, make_shared<string>(""))) +
|
vector<SourceLocation>(24, SourceLocation(2, 75, make_shared<string>(""))) +
|
||||||
|
Loading…
Reference in New Issue
Block a user