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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 75463002: Remove now-dead stack parsing code from Dartium's dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | tools/dom/src/native_DOMImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 481bec11da29a5424e27ab01096a2295983b338d..6ff1c32d8c4b71f41ddf37e0f7e5b45af4c443a0 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -36579,24 +36579,6 @@ class _Utils {
return result;
}
- static List parseStackTrace(StackTrace stackTrace) {
- final regExp = new RegExp(r'#\d\s+(.*) \((.*):(\d+):(\d+)\)');
- List result = [];
- for (var match in regExp.allMatches(stackTrace.toString())) {
- result.add([match.group(1), match.group(2), int.parse(match.group(3)), int.parse(match.group(4))]);
- }
- return result;
- }
-
- static List captureParsedStackTrace() {
- try {
- // Throwing an exception is the only way to generate a stack trace.
- throw new Exception();
- } catch (e, stackTrace) {
- return parseStackTrace(stackTrace);
- }
- }
-
static void populateMap(Map result, List list) {
for (int i = 0; i < list.length; i += 2) {
result[list[i]] = list[i + 1];
« no previous file with comments | « no previous file | tools/dom/src/native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698