Remove unused parameter BlobLength

This fixes two compiler warnings:

    src/classify/intmatcher.cpp:553:14: warning: unused parameter ‘BlobLength’ [-Wunused-parameter]
    src/classify/intmatcher.cpp:622:14: warning: unused parameter ‘BlobLength’ [-Wunused-parameter]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2019-03-22 11:17:19 +01:00
parent ac7ea4322a
commit dd79d56e9f
3 changed files with 2 additions and 10 deletions

View File

@ -1754,7 +1754,6 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
int NumOldProtos; int NumOldProtos;
int NumBadFeatures; int NumBadFeatures;
int MaxProtoId, OldMaxProtoId; int MaxProtoId, OldMaxProtoId;
int BlobLength = 0;
int MaskSize; int MaskSize;
int ConfigId; int ConfigId;
TEMP_CONFIG Config; TEMP_CONFIG Config;
@ -1778,7 +1777,7 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
OldMaxProtoId = IClass->NumProtos - 1; OldMaxProtoId = IClass->NumProtos - 1;
NumOldProtos = im_.FindGoodProtos(IClass, AllProtosOn, AllConfigsOff, NumOldProtos = im_.FindGoodProtos(IClass, AllProtosOn, AllConfigsOff,
BlobLength, NumFeatures, Features, NumFeatures, Features,
OldProtos, classify_adapt_proto_threshold, OldProtos, classify_adapt_proto_threshold,
debug_level); debug_level);
@ -1788,7 +1787,7 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
SET_BIT(TempProtoMask, OldProtos[i]); SET_BIT(TempProtoMask, OldProtos[i]);
NumBadFeatures = im_.FindBadFeatures(IClass, TempProtoMask, AllConfigsOn, NumBadFeatures = im_.FindBadFeatures(IClass, TempProtoMask, AllConfigsOn,
BlobLength, NumFeatures, Features, NumFeatures, Features,
BadFeatures, BadFeatures,
classify_adapt_feature_threshold, classify_adapt_feature_threshold,
debug_level); debug_level);

View File

@ -458,7 +458,6 @@ int Classify::PruneClasses(const INT_TEMPLATES_STRUCT* int_templates,
* Globals: * Globals:
* - local_matcher_multiplier_ Normalization factor multiplier * - local_matcher_multiplier_ Normalization factor multiplier
* param ClassTemplate Prototypes & tables for a class * param ClassTemplate Prototypes & tables for a class
* param BlobLength Length of unormalized blob
* param NumFeatures Number of features in blob * param NumFeatures Number of features in blob
* param Features Array of features * param Features Array of features
* param NormalizationFactor Fudge factor from blob normalization process * param NormalizationFactor Fudge factor from blob normalization process
@ -537,7 +536,6 @@ void IntegerMatcher::Match(INT_CLASS ClassTemplate,
* param ClassTemplate Prototypes & tables for a class * param ClassTemplate Prototypes & tables for a class
* param ProtoMask AND Mask for proto word * param ProtoMask AND Mask for proto word
* param ConfigMask AND Mask for config word * param ConfigMask AND Mask for config word
* param BlobLength Length of unormalized blob
* param NumFeatures Number of features in blob * param NumFeatures Number of features in blob
* param Features Array of features * param Features Array of features
* param ProtoArray Array of good protos * param ProtoArray Array of good protos
@ -549,7 +547,6 @@ int IntegerMatcher::FindGoodProtos(
INT_CLASS ClassTemplate, INT_CLASS ClassTemplate,
BIT_VECTOR ProtoMask, BIT_VECTOR ProtoMask,
BIT_VECTOR ConfigMask, BIT_VECTOR ConfigMask,
uint16_t BlobLength,
int16_t NumFeatures, int16_t NumFeatures,
INT_FEATURE_ARRAY Features, INT_FEATURE_ARRAY Features,
PROTO_ID *ProtoArray, PROTO_ID *ProtoArray,
@ -606,7 +603,6 @@ int IntegerMatcher::FindGoodProtos(
* @param ClassTemplate Prototypes & tables for a class * @param ClassTemplate Prototypes & tables for a class
* @param ProtoMask AND Mask for proto word * @param ProtoMask AND Mask for proto word
* @param ConfigMask AND Mask for config word * @param ConfigMask AND Mask for config word
* @param BlobLength Length of unormalized blob
* @param NumFeatures Number of features in blob * @param NumFeatures Number of features in blob
* @param Features Array of features * @param Features Array of features
* @param FeatureArray Array of bad features * @param FeatureArray Array of bad features
@ -618,7 +614,6 @@ int IntegerMatcher::FindBadFeatures(
INT_CLASS ClassTemplate, INT_CLASS ClassTemplate,
BIT_VECTOR ProtoMask, BIT_VECTOR ProtoMask,
BIT_VECTOR ConfigMask, BIT_VECTOR ConfigMask,
uint16_t BlobLength,
int16_t NumFeatures, int16_t NumFeatures,
INT_FEATURE_ARRAY Features, INT_FEATURE_ARRAY Features,
FEATURE_ID *FeatureArray, FEATURE_ID *FeatureArray,

View File

@ -113,7 +113,6 @@ class IntegerMatcher {
int FindGoodProtos(INT_CLASS ClassTemplate, int FindGoodProtos(INT_CLASS ClassTemplate,
BIT_VECTOR ProtoMask, BIT_VECTOR ProtoMask,
BIT_VECTOR ConfigMask, BIT_VECTOR ConfigMask,
uint16_t BlobLength,
int16_t NumFeatures, int16_t NumFeatures,
INT_FEATURE_ARRAY Features, INT_FEATURE_ARRAY Features,
PROTO_ID *ProtoArray, PROTO_ID *ProtoArray,
@ -123,7 +122,6 @@ class IntegerMatcher {
int FindBadFeatures(INT_CLASS ClassTemplate, int FindBadFeatures(INT_CLASS ClassTemplate,
BIT_VECTOR ProtoMask, BIT_VECTOR ProtoMask,
BIT_VECTOR ConfigMask, BIT_VECTOR ConfigMask,
uint16_t BlobLength,
int16_t NumFeatures, int16_t NumFeatures,
INT_FEATURE_ARRAY Features, INT_FEATURE_ARRAY Features,
FEATURE_ID *FeatureArray, FEATURE_ID *FeatureArray,