File tree Expand file tree Collapse file tree 2 files changed +1
-26
lines changed
source/code/projects/CList/CList Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -239,31 +239,6 @@ public int CountSuccessive(T dataP)
239
239
return mCount ;
240
240
}
241
241
242
- // Method to remove at a particular index
243
- // Very similar to RemoveI, simply
244
- // implemented with a different philosophy.
245
- public void RemoveAt ( int index )
246
- {
247
- if ( index >= 0 && index < Size )
248
- {
249
- if ( index == 0 )
250
- RemoveF ( ) ;
251
- else if ( index == ( Size - 1 ) )
252
- RemoveL ( ) ;
253
- else
254
- {
255
- Cell cCell = first ;
256
- for ( int i = 0 ; i < index - 1 ; i ++ )
257
- {
258
- cCell = cCell . Next ;
259
- }
260
- cCell . Next = cCell . Next . Next ;
261
- }
262
- }
263
- else
264
- throw new ArgumentOutOfRangeException ( ) ;
265
- }
266
-
267
242
// Method to reverse a list
268
243
public void Reverse ( )
269
244
{
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ static void Main(string[] args)
60
60
) ;
61
61
myList1 . Reverse ( ) ;
62
62
Console . WriteLine ( myList1 ) ;
63
- myList1 . RemoveAt ( 1 ) ;
63
+ myList1 . RemoveI ( 1 ) ;
64
64
Console . WriteLine ( myList1 ) ;
65
65
66
66
myList1 . RemoveI ( 2 ) ;
You can’t perform that action at this time.
0 commit comments