mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Remove unused parameter from listReporters()
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							1faccd601d
						
					
				
				
					commit
					b7f41237b1
				
			@@ -124,7 +124,7 @@ namespace Catch {
 | 
				
			|||||||
        return tagCounts.size();
 | 
					        return tagCounts.size();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::size_t listReporters( Config const& /*config*/ ) {
 | 
					    std::size_t listReporters() {
 | 
				
			||||||
        Catch::cout() << "Available reporters:\n";
 | 
					        Catch::cout() << "Available reporters:\n";
 | 
				
			||||||
        IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories();
 | 
					        IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories();
 | 
				
			||||||
        std::size_t maxNameLen = 0;
 | 
					        std::size_t maxNameLen = 0;
 | 
				
			||||||
@@ -155,7 +155,7 @@ namespace Catch {
 | 
				
			|||||||
        if( config.listTags() )
 | 
					        if( config.listTags() )
 | 
				
			||||||
            listedCount = listedCount.valueOr(0) + listTags( config );
 | 
					            listedCount = listedCount.valueOr(0) + listTags( config );
 | 
				
			||||||
        if( config.listReporters() )
 | 
					        if( config.listReporters() )
 | 
				
			||||||
            listedCount = listedCount.valueOr(0) + listReporters( config );
 | 
					            listedCount = listedCount.valueOr(0) + listReporters();
 | 
				
			||||||
        return listedCount;
 | 
					        return listedCount;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@ namespace Catch {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    std::size_t listTags( Config const& config );
 | 
					    std::size_t listTags( Config const& config );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::size_t listReporters( Config const& /*config*/ );
 | 
					    std::size_t listReporters();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    Option<std::size_t> list( Config const& config );
 | 
					    Option<std::size_t> list( Config const& config );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user