public void UnRegisterCodec(TiffCodec codec)
{
if (m_registeredCodecs == null)
return;
codecList temp;
if (m_registeredCodecs.codec == codec)
{
temp = m_registeredCodecs.next;
m_registeredCodecs = temp;
return;
}
for (codecList list = m_registeredCodecs; list != null; list = list.next)
{
if (list.next != null)
{
if (list.next.codec == codec)
{
temp = list.next.next;
list.next = temp;
return;
}
}
}
ErrorExt(this, 0, "UnRegisterCodec",
"Cannot remove compression scheme {0}; not registered", codec.m_name);
}