summaryrefslogtreecommitdiffstats
path: root/source/slang/options.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2019-01-18 10:53:09 -0800
committerGitHub <noreply@github.com>2019-01-18 10:53:09 -0800
commitc55b462bf993dcd65ec17ffeeab97ac138e6d206 (patch)
tree89b31431c7707cec713e976748709fef1c19faf4 /source/slang/options.cpp
parent3c7e1be0098f963225afd0ebe83340a991392892 (diff)
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.
Diffstat (limited to 'source/slang/options.cpp')
-rw-r--r--source/slang/options.cpp2
1 files changed, 0 insertions, 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);