mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 18:00:54 +00:00
Coverity: Remove some redundant code
This commit is contained in:
1 parent
d7c6ff3eb8
commit
e8c5d09431
2 files changed
+1
-5
No files matched your search
@@ -557,9 +557,7 @@ bool ResourceManager<WrappedResourceType, RealResourceType, RecordType>::MarkRef
|
||||
}
|
||||
else if(refs[id] == eFrameRef_Unknown)
|
||||
{
|
||||
if(refType == eFrameRef_ReadBeforeWrite)
|
||||
refs[id] = eFrameRef_ReadBeforeWrite;
|
||||
else if(refType == eFrameRef_Read || refType == eFrameRef_ReadOnly)
|
||||
if(refType == eFrameRef_Read || refType == eFrameRef_ReadOnly)
|
||||
refs[id] = eFrameRef_ReadOnly;
|
||||
else
|
||||
refs[id] = eFrameRef_ReadAndWrite;
|
||||
|
||||
@@ -1107,8 +1107,6 @@ bool DXBCFile::ExtractDecl(uint32_t *&tokenStream, ASMDecl &retDecl)
|
||||
|
||||
if(retDecl.refactoringAllowed)
|
||||
{
|
||||
if(added)
|
||||
retDecl.str += ", ";
|
||||
retDecl.str += "refactoringAllowed";
|
||||
added = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user