You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a sample package with a single file as an example:
let test = "unused value"
enum PlanHashMode {
case VL0
case VC0
case VC1
var numericVersion: Int32 {
switch self {
case .VL0:
let kind: String = "LEGACY"
let numericVersion: Int32 = 0
return numericVersion
case .VC0:
let kind: String = "FOR_CONTINUATION"
let numericVersion: Int32 = 0
return numericVersion
case .VC1:
let kind: String = "FOR_CONTINUATION"
let numericVersion: Int32 = 1
return numericVersion
}
}
}
Ideally I'd like line 1 and and the declarations of let kind: String = in each case to be removed. Right now, only line 1 is even detected, but it seems like it doesn't get removed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can you help me understand how auto-remove works?
I have a sample package with a single file as an example:
Ideally I'd like line 1 and and the declarations of
let kind: String =
in each case to be removed. Right now, only line 1 is even detected, but it seems like it doesn't get removed.Beta Was this translation helpful? Give feedback.
All reactions