summaryrefslogtreecommitdiff
path: root/filter/source/config
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/config')
-rw-r--r--filter/source/config/cache/typedetection.cxx9
-rw-r--r--filter/source/config/cache/typedetection.hxx11
2 files changed, 1 insertions, 19 deletions
diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx
index 1fd7cccc49ab..774005722a32 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -422,9 +422,8 @@ OUString SAL_CALL TypeDetection::queryTypeByDescriptor(css::uno::Sequence< css::
// outside (bAllowDeep=sal_False) or break the whole detection by
// throwing an exception if creation of the might needed input
// stream failed by e.g. an IO exception ...
- std::vector<OUString> lUsedDetectors;
if (!lFlatTypes.empty())
- sType = impl_detectTypeFlatAndDeep(stlDescriptor, lFlatTypes, bAllowDeep, lUsedDetectors, sLastChance);
+ sType = impl_detectTypeFlatAndDeep(stlDescriptor, lFlatTypes, bAllowDeep, sLastChance);
// flat detection failed
// pure deep detection failed
@@ -855,13 +854,11 @@ void TypeDetection::impl_getAllFormatTypes(
OUString TypeDetection::impl_detectTypeFlatAndDeep( utl::MediaDescriptor& rDescriptor ,
const FlatDetection& lFlatTypes ,
bool bAllowDeep ,
- std::vector<OUString>& rUsedDetectors,
OUString& rLastChance )
{
// reset it everytimes, so the outside code can distinguish between
// a set and a not set value.
rLastChance.clear();
- rUsedDetectors.clear();
// step over all possible types for this URL.
// solutions:
@@ -919,10 +916,6 @@ OUString TypeDetection::impl_detectTypeFlatAndDeep( utl::MediaDescriptor& r
continue;
}
- // don't forget to add every real asked deep detection service here.
- // Such detectors will be ignored if may be "impl_detectTypeDeepOnly()"
- // must be called later!
- rUsedDetectors.push_back(sDetectService);
OUString sDeepType = impl_askDetectService(sDetectService, rDescriptor);
// d)
diff --git a/filter/source/config/cache/typedetection.hxx b/filter/source/config/cache/typedetection.hxx
index 21f598055fda..79145e836d17 100644
--- a/filter/source/config/cache/typedetection.hxx
+++ b/filter/source/config/cache/typedetection.hxx
@@ -98,10 +98,6 @@ private:
was used without getting any result. Then this "last-chance-type"
should be returned. Of course using of it can fail too ... but it's a try :-)
- As an optimization - this method collects the names of all used deep
- detection services. This information can be useful inside the may be
- afterwards called method "impl_detectTypeDeepOnly()"!
-
@param rDescriptor
provides any easy-to-use stl interface to the MediaDescriptor.
Note : Its content will be adapted to returned result of this method.
@@ -116,12 +112,6 @@ private:
Note: it will be reset to an empty string every time. So
a set value of "rLastChance" can be detected outside very easy.
- @param rUsedDetectors
- used as [out] parameter. It contains a list of names of all deep
- detection services, which was used inside this method.
- Such detectors can be ignored later if "impl_detectTypeDeepOnly()"
- is called.
-
@param bAllowDeep
enable/disable using of a might existing deep detection service.
@@ -132,7 +122,6 @@ private:
OUString impl_detectTypeFlatAndDeep( utl::MediaDescriptor& rDescriptor ,
const FlatDetection& lFlatTypes ,
bool bAllowDeep ,
- std::vector<OUString>& rUsedDetectors,
OUString& rLastChance );