Coverity: Remove some redundant code

This commit is contained in:
baldurk committed 2016-06-09 13:56:57 -07:00
1 parent d7c6ff3eb8
commit e8c5d09431
2 files changed
+1 -5

No files matched your search

+1 -3
View File
@@ -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;
}