Remove dead code and clarify throw.

This commit is contained in:
chriseth 2018-04-12 20:13:16 +02:00
parent b25598126e
commit 966367305a
2 changed files with 1 additions and 2 deletions

View File

@ -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
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.
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::
From version 0.4.13 the ``throw`` keyword is deprecated and will be phased out in the future.

View File

@ -157,7 +157,6 @@ BOOST_AUTO_TEST_CASE(location_test)
}
}
)";
shared_ptr<string const> n = make_shared<string>("");
AssemblyItems items = compileContract(sourceCode);
vector<SourceLocation> locations =
vector<SourceLocation>(24, SourceLocation(2, 75, make_shared<string>(""))) +