refactoring: removed dead code (#18567)
This commit is contained in:
parent
cc0f02d57d
commit
f4ff276a90
4 changed files with 11 additions and 17 deletions
|
|
@ -222,8 +222,7 @@ proc semConstructFields(c: PContext, n: PNode,
|
|||
valsDiff.renderAsType(n[0].typ)])
|
||||
|
||||
let branchNode = n[selectedBranch]
|
||||
let flags = flags*{efAllowDestructor} + {efPreferStatic,
|
||||
efPreferNilResult}
|
||||
let flags = {efPreferStatic, efPreferNilResult}
|
||||
var discriminatorVal = semConstrField(c, flags,
|
||||
discriminator.sym,
|
||||
constrCtx.initExpr)
|
||||
|
|
@ -436,6 +435,6 @@ proc semObjConstr(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
|||
|
||||
if initResult == initFull:
|
||||
incl result.flags, nfAllFieldsSet
|
||||
|
||||
|
||||
# wrap in an error see #17437
|
||||
if hasError: result = errorNode(c, result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue