File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -249,25 +249,6 @@ object Contexts {
249
249
final def withPhaseNoLater (phase : Phase ) =
250
250
if (ctx.phase.id > phase.id) withPhase(phase) else ctx
251
251
252
- /** If -Ydebug is on, the top of the stack trace where this context
253
- * was created, otherwise `null`.
254
- */
255
- private var creationTrace : Array [StackTraceElement ] = _
256
-
257
- private def setCreationTrace () =
258
- if (this .settings.debug.value)
259
- creationTrace = (new Throwable ).getStackTrace().take(20 )
260
-
261
- /** Print all enclosing context's creation stacktraces */
262
- def printCreationTraces () = {
263
- println(" === context creation trace =======" )
264
- for (ctx <- outersIterator) {
265
- println(s " >>>>>>>>> $ctx" )
266
- if (ctx.creationTrace != null ) println(ctx.creationTrace.mkString(" \n " ))
267
- }
268
- println(" === end context creation trace ===" )
269
- }
270
-
271
252
/** The current reporter */
272
253
def reporter : Reporter = typerState.reporter
273
254
@@ -391,7 +372,6 @@ object Contexts {
391
372
this .implicitsCache = null
392
373
this .phasedCtx = this
393
374
this .phasedCtxs = null
394
- setCreationTrace()
395
375
this
396
376
}
397
377
You can’t perform that action at this time.
0 commit comments