From 969d816792609300c32063a5ea2cbb6be66e16f1 Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Wed, 5 Jan 2005 02:14:09 +0000 Subject: [PATCH] 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 --- src/kits/translation/TranslatorRoster.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/kits/translation/TranslatorRoster.cpp b/src/kits/translation/TranslatorRoster.cpp index 746596ea34..435d04b0d7 100644 --- a/src/kits/translation/TranslatorRoster.cpp +++ b/src/kits/translation/TranslatorRoster.cpp @@ -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;