Removed silly PPMTranslator hack because it caused issues with the Haiku RTF-Translator and it really never should have been added in the first place.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10586 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber 2005-01-05 02:14:09 +00:00
parent 4ff5ade253
commit 969d816792

View File

@ -577,17 +577,6 @@ BTranslatorRoster::Identify(BPositionIO *inSource,
if (addmatch) {
weight = tmpInfo.quality * tmpInfo.capability;
// Since many kinds of data can look like text,
// don't choose the text format if it has been identified
// as belonging to a different group.
if (bFoundMatch && outInfo->group == B_TRANSLATOR_TEXT &&
tmpInfo.group != B_TRANSLATOR_TEXT)
bestWeight = 0.0;
else if (bFoundMatch && tmpInfo.group == B_TRANSLATOR_TEXT &&
outInfo->group != B_TRANSLATOR_TEXT)
weight = 0.0;
if (weight > bestWeight) {
bFoundMatch = true;
bestWeight = weight;