stream/mts/psi: deleted some todos as they have been addressed now

This commit is contained in:
saxon 2019-01-29 16:15:18 +10:30
parent 1786ed2661
commit c7d418ce81
1 changed files with 0 additions and 2 deletions

View File

@ -328,13 +328,11 @@ func (p *PSIBytes) createDescriptor(tag int, data []byte) {
copy((*p)[newDescIdx+2:newDescIdx+2+dataLen], data)
// Update the program info length to account for the new descriptor.
// TODO: put this in function set program info length
addedLen := dataLen + 2
newProgInfoLen := curProgLen + addedLen
p.SetProgInfoLen(newProgInfoLen)
// set section length
// TODO: put this in func set program info length
newSyntaxSectionLen := int(oldSyntaxSectionLen) + addedLen
p.SetSectionLen(newSyntaxSectionLen)
}