stream/mts/psi: removed deleteDescriptor func as we don't need it yet

This commit is contained in:
saxon 2019-01-29 14:39:01 +10:30
parent 4a3464252b
commit 287238ddd1
1 changed files with 0 additions and 9 deletions

View File

@ -321,15 +321,6 @@ func (p *PSIBytes) SetProgInfoLen(l int) {
(*p)[ProgramInfoLenIdx2] = byte(l) (*p)[ProgramInfoLenIdx2] = byte(l)
} }
func (p *PSIBytes) deleteDescriptor(tag int) error {
if i, desc := p.HasDescriptor(tag); desc != nil {
descLen := len(desc)
newProgInfoLen := p.ProgramInfoLen() - descLen
p.SetProgInfoLen(newProgInfoLen)
}
return errors.New("Descriptor doesn't exist")
}
func (d *Descriptor) update(data []byte) { func (d *Descriptor) update(data []byte) {
if len(data) > int((*d)[1]) { if len(data) > int((*d)[1]) {
// TODO: implement resizing of descriptor // TODO: implement resizing of descriptor