diff --git a/stream/mts/psi/psi.go b/stream/mts/psi/psi.go index 8832dfb4..9d0c1906 100644 --- a/stream/mts/psi/psi.go +++ b/stream/mts/psi/psi.go @@ -321,15 +321,6 @@ func (p *PSIBytes) SetProgInfoLen(l int) { (*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) { if len(data) > int((*d)[1]) { // TODO: implement resizing of descriptor