@@ -587,19 +587,13 @@ protected virtual void GetMetadataCore<TValue>(string kind, int iinfo, ref TValu
587
587
/// predicate on each column index.
588
588
/// </summary>
589
589
public bool [ ] GetActive ( Func < int , bool > predicate )
590
- {
591
- return Utils . BuildArray ( ColumnCount , predicate ) ;
592
- }
590
+ => Utils . BuildArray ( ColumnCount , predicate ) ;
593
591
594
592
/// <summary>
595
- /// The given predicate maps from output column index to whether the column is active.
596
- /// This builds an array of bools of length ColumnCount containing the results of calling
597
- /// predicate on each column index.
593
+ /// This builds an array of bools of length ColumnCount indicating the index of the active column.
598
594
/// </summary>
599
595
public bool [ ] GetActive ( IEnumerable < DataViewSchema . Column > columns )
600
- {
601
- return Utils . BuildArray ( ColumnCount , columns ) ;
602
- }
596
+ => Utils . BuildArray ( ColumnCount , columns ) ;
603
597
604
598
/// <summary>
605
599
/// The given predicate maps from output column index to whether the column is active.
@@ -622,9 +616,8 @@ public bool[] GetActiveInput(Func<int, bool> predicate)
622
616
}
623
617
624
618
/// <summary>
625
- /// The given predicate maps from output column index to whether the column is active.
626
- /// This builds an array of bools of length Input.ColumnCount containing the results of calling
627
- /// predicate on the output column index corresponding to each input column index.
619
+ /// This builds an array of bools of length Input.ColumnCount containing indicating the index of the
620
+ /// active input columns, given the actual columns.
628
621
/// </summary>
629
622
public bool [ ] GetActiveInput ( IEnumerable < DataViewSchema . Column > inputColumns )
630
623
{
@@ -788,18 +781,6 @@ public bool[] GetActiveInput(Func<int, bool> predicate)
788
781
}
789
782
return active ;
790
783
}
791
-
792
- /// <summary>
793
- /// The given predicate maps from output column index to whether the column is active.
794
- /// This builds an array of bools of length Input.ColumnCount containing the results of calling
795
- /// predicate on the output column index corresponding to each input column index.
796
- /// </summary>
797
- public bool [ ] GetActiveInput ( IEnumerable < DataViewSchema . Column > activeColumns )
798
- {
799
- Contracts . AssertValue ( activeColumns ) ;
800
- var predicate = RowCursorUtils . FromColumnsToPredicate ( activeColumns , Schema ) ;
801
- return GetActiveInput ( predicate ) ;
802
- }
803
784
}
804
785
805
786
/// <summary>
0 commit comments