From c55b462bf993dcd65ec17ffeeab97ac138e6d206 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 18 Jan 2019 10:53:09 -0800 Subject: Delete what appears to be stray code in options validation (#784) The code for options validation had something like: ```c++ { if(rawTarget.redundantProfileSet) if(rawTarget.conflictingProfileSet) { ... } else if(rawTarget.redundantProfileSet) { ... } } ``` The first `if` there seems to be stray code left over from some edit to this logic, since its case is handled later on. --- source/slang/options.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/slang/options.cpp b/source/slang/options.cpp index f22d8a48d..b87e19e46 100644 --- a/source/slang/options.cpp +++ b/source/slang/options.cpp @@ -1101,8 +1101,6 @@ struct OptionsParser for(auto& rawTarget : rawTargets) { - if(rawTarget.redundantProfileSet ) - if( rawTarget.conflictingProfilesSet ) { sink->diagnose(SourceLoc(), Diagnostics::conflictingProfilesSpecifiedForTarget, rawTarget.format); -- cgit v1.2.3