File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
RetailCoder.VBE/Refactorings Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ private void RemoveParameters()
69
69
{
70
70
if ( _model . TargetDeclaration == null ) { throw new NullReferenceException ( "Parameter is null." ) ; }
71
71
72
- AdjustReferences ( _model . TargetDeclaration . References . OrderByDescending ( item => item . Selection . StartLine ) , _model . TargetDeclaration ) ;
72
+ AdjustReferences ( _model . TargetDeclaration . References , _model . TargetDeclaration ) ;
73
73
AdjustSignatures ( ) ;
74
74
}
75
75
@@ -264,7 +264,7 @@ private void AdjustSignatures()
264
264
{
265
265
foreach ( var reference in _model . Declarations . FindEventProcedures ( withEvents ) )
266
266
{
267
- AdjustReferences ( reference . References . OrderByDescending ( item => item . Selection . StartLine ) , reference ) ;
267
+ AdjustReferences ( reference . References , reference ) ;
268
268
AdjustSignatures ( reference ) ;
269
269
}
270
270
}
@@ -274,7 +274,7 @@ private void AdjustSignatures()
274
274
item . IdentifierName == _model . TargetDeclaration . ComponentName + "_" + _model . TargetDeclaration . IdentifierName ) ;
275
275
foreach ( var interfaceImplentation in interfaceImplementations )
276
276
{
277
- AdjustReferences ( interfaceImplentation . References . OrderByDescending ( item => item . Selection . StartLine ) , interfaceImplentation ) ;
277
+ AdjustReferences ( interfaceImplentation . References , interfaceImplentation ) ;
278
278
AdjustSignatures ( interfaceImplentation ) ;
279
279
}
280
280
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public void Refactor()
37
37
return ;
38
38
}
39
39
40
- AdjustReferences ( _model . TargetDeclaration . References . OrderByDescending ( item => item . Selection . StartLine ) ) ;
40
+ AdjustReferences ( _model . TargetDeclaration . References ) ;
41
41
AdjustSignatures ( ) ;
42
42
}
43
43
@@ -181,7 +181,7 @@ private void AdjustSignatures()
181
181
{
182
182
foreach ( var reference in _model . Declarations . FindEventProcedures ( withEvents ) )
183
183
{
184
- AdjustReferences ( reference . References . OrderByDescending ( item => item . Selection . StartLine ) ) ;
184
+ AdjustReferences ( reference . References ) ;
185
185
AdjustSignatures ( reference ) ;
186
186
}
187
187
}
@@ -191,7 +191,7 @@ private void AdjustSignatures()
191
191
item . IdentifierName == _model . TargetDeclaration . ComponentName + "_" + _model . TargetDeclaration . IdentifierName ) ;
192
192
foreach ( var interfaceImplentation in interfaceImplementations )
193
193
{
194
- AdjustReferences ( interfaceImplentation . References . OrderByDescending ( item => item . Selection . StartLine ) ) ;
194
+ AdjustReferences ( interfaceImplentation . References ) ;
195
195
AdjustSignatures ( interfaceImplentation ) ;
196
196
}
197
197
}
You can’t perform that action at this time.
0 commit comments