Skip to content

Commit

Permalink
Remove cruft code, add sync_with_stdio(false)
Browse files Browse the repository at this point in the history
FossilOrigin-Name: da8c21158c3d1cb5c2f7c3b089711bc66849bf05e8148e05aabad090733e3cc6
  • Loading branch information
[email protected] committed Mar 20, 2018
1 parent 6750a8d commit d6f38ca
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions apps/qctool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1675,22 +1675,11 @@ struct QCToolCmdLineContext
) ;
}

#if 1
merge_in_source = genfile::ReorderingSNPDataSource::create(
merge_in_source,
get_sample_id_mapping( samples, id_columns[0], *merge_in_samples, id_columns[1] )
) ;
#else
merge_in_source.reset(
new genfile::SampleMappingSNPDataSource(
*m_samples,
id_columns[0],
*merge_in_samples,
id_columns[1],
merge_in_source
)
) ;
#endif

// Make the merged-in source respect the filter.
genfile::CommonSNPFilter* snp_filter = get_snp_filter() ;
if( snp_filter ) {
Expand Down Expand Up @@ -2897,6 +2886,8 @@ struct QCToolApplication: public appcontext::ApplicationContext
} ;

int main( int argc, char** argv ) {
// needed for efficient output to standard output streams
std::ios_base::sync_with_stdio( false ) ;
try {
QCToolApplication app( argc, argv ) ;
}
Expand Down

0 comments on commit d6f38ca

Please sign in to comment.