Skip to content

Commit

Permalink
Removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
rijnb committed Apr 14, 2020
1 parent 6bbb65e commit f5449e5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions traceevents/src/main/java/com/tomtom/kotlin/traceevents/Tracer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -703,21 +703,6 @@ class Tracer private constructor(
// This shouldn't happen, but we certainly shouldn't throw here.
"(error: can't find `invoke` function on stack)"
}

// var i = 0
// while (i < stack.size && !stack[i].className.startsWith("com.sun.proxy.\$Proxy")) i++
//
// // The function 1 level deeper is the actual caller function.
// return if (i < stack.size - 1) {
//
// // Skip the com.sun.proxy line and get the info from the next item.
// val item = stack[i + 1]
// "${item.fileName}:${item.methodName}(${item.lineNumber})"
// } else {
//
// // This shouldn't happen, but we certainly shouldn't throw here.
// "(can't find function on stack)"
// }
}

init {
Expand Down

0 comments on commit f5449e5

Please sign in to comment.