Skip to content

Commit 32bd2aa

Browse files
authored
Merge pull request #9548 from dotty-staging/remove-dead-code-in-reflection
Remove dead code in CompilerInterface
2 parents a5ae258 + 4f47860 commit 32bd2aa

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
2626

2727
private given core.Contexts.Context = rootContext
2828

29-
def settings: Settings = rootContext.settings
30-
3129
def rootPosition: util.SourcePosition =
3230
tastyreflect.MacroExpansion.position.getOrElse(SourcePosition(rootContext.source, Spans.NoSpan))
3331

@@ -95,15 +93,6 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
9593
report.error(msg, util.SourcePosition(sourceFile, util.Spans.Span(start, end)))
9694

9795

98-
//////////////
99-
// Settings //
100-
//////////////
101-
102-
type Settings = config.ScalaSettings
103-
104-
def Settings_color(self: Settings): Boolean = self.color.value(using rootContext) == "always"
105-
106-
10796
///////////
10897
// TREES //
10998
///////////

library/src/scala/tasty/Reflection.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
115115
/** Compilation context */
116116
type Context = internal.Context
117117

118-
/** Settings */
119-
type Settings = internal.Settings
120-
121118
/** Tree representing code written in the source */
122119
type Tree = internal.Tree
123120

library/src/scala/tasty/reflect/CompilerInterface.scala

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ trait CompilerInterface {
115115
/** Root position of this tasty context. For macros it corresponds to the expansion site. */
116116
def rootPosition: Position
117117

118-
def settings: Settings
119-
120118

121119
//////////////////////
122120
// QUOTE UNPICKLING //
@@ -192,16 +190,6 @@ trait CompilerInterface {
192190
def warning(msg: => String, source: SourceFile, start: Int, end: Int)(using ctx: Context): Unit
193191

194192

195-
//////////////
196-
// Settings //
197-
//////////////
198-
199-
/** Settings */
200-
type Settings <: AnyRef
201-
202-
def Settings_color(self: Settings): Boolean
203-
204-
205193
/////////////
206194
// TREES //
207195
/////////////

0 commit comments

Comments
 (0)