Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: runtime/vm/object.cc

Issue 15740015: Remove some dead code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 23040)
+++ runtime/vm/object.cc (working copy)
@@ -6088,32 +6088,6 @@
}
-RawFunction* Library::LookupFunctionInSource(const String& script_url,
- intptr_t line_number) const {
- Script& script = Script::Handle(LookupScript(script_url));
- if (script.IsNull()) {
- // The given script url is not loaded into this library.
- return Function::null();
- }
-
- // Determine token position at given line number.
- intptr_t first_token_pos, last_token_pos;
- script.TokenRangeAtLine(line_number, &first_token_pos, &last_token_pos);
- if (first_token_pos < 0) {
- // Script does not contain the given line number.
- return Function::null();
- }
- Function& func = Function::Handle();
- for (intptr_t pos = first_token_pos; pos <= last_token_pos; pos++) {
- func = LookupFunctionInScript(script, pos);
- if (!func.IsNull()) {
- return func.raw();
- }
- }
- return Function::null();
-}
-
-
RawFunction* Library::LookupFunctionInScript(const Script& script,
intptr_t token_pos) const {
Class& cls = Class::Handle();
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698