Skip to content

Commit

Permalink
Remove unused parameter BlobLength
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stweil committed Mar 22, 2019
1 parent ac7ea43 commit dd79d56
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
5 changes: 2 additions & 3 deletions src/classify/adaptmatch.cpp
Expand Up @@ -1754,7 +1754,6 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
int NumOldProtos;
int NumBadFeatures;
int MaxProtoId, OldMaxProtoId;
int BlobLength = 0;
int MaskSize;
int ConfigId;
TEMP_CONFIG Config;
Expand All @@ -1778,7 +1777,7 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
OldMaxProtoId = IClass->NumProtos - 1;

NumOldProtos = im_.FindGoodProtos(IClass, AllProtosOn, AllConfigsOff,
BlobLength, NumFeatures, Features,
NumFeatures, Features,
OldProtos, classify_adapt_proto_threshold,
debug_level);

Expand All @@ -1788,7 +1787,7 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
SET_BIT(TempProtoMask, OldProtos[i]);

NumBadFeatures = im_.FindBadFeatures(IClass, TempProtoMask, AllConfigsOn,
BlobLength, NumFeatures, Features,
NumFeatures, Features,
BadFeatures,
classify_adapt_feature_threshold,
debug_level);
Expand Down
5 changes: 0 additions & 5 deletions src/classify/intmatcher.cpp
Expand Up @@ -458,7 +458,6 @@ int Classify::PruneClasses(const INT_TEMPLATES_STRUCT* int_templates,
* Globals:
* - local_matcher_multiplier_ Normalization factor multiplier
* param ClassTemplate Prototypes & tables for a class
* param BlobLength Length of unormalized blob
* param NumFeatures Number of features in blob
* param Features Array of features
* param NormalizationFactor Fudge factor from blob normalization process
Expand Down Expand Up @@ -537,7 +536,6 @@ void IntegerMatcher::Match(INT_CLASS ClassTemplate,
* param ClassTemplate Prototypes & tables for a class
* param ProtoMask AND Mask for proto word
* param ConfigMask AND Mask for config word
* param BlobLength Length of unormalized blob
* param NumFeatures Number of features in blob
* param Features Array of features
* param ProtoArray Array of good protos
Expand All @@ -549,7 +547,6 @@ int IntegerMatcher::FindGoodProtos(
INT_CLASS ClassTemplate,
BIT_VECTOR ProtoMask,
BIT_VECTOR ConfigMask,
uint16_t BlobLength,
int16_t NumFeatures,
INT_FEATURE_ARRAY Features,
PROTO_ID *ProtoArray,
Expand Down Expand Up @@ -606,7 +603,6 @@ int IntegerMatcher::FindGoodProtos(
* @param ClassTemplate Prototypes & tables for a class
* @param ProtoMask AND Mask for proto word
* @param ConfigMask AND Mask for config word
* @param BlobLength Length of unormalized blob
* @param NumFeatures Number of features in blob
* @param Features Array of features
* @param FeatureArray Array of bad features
Expand All @@ -618,7 +614,6 @@ int IntegerMatcher::FindBadFeatures(
INT_CLASS ClassTemplate,
BIT_VECTOR ProtoMask,
BIT_VECTOR ConfigMask,
uint16_t BlobLength,
int16_t NumFeatures,
INT_FEATURE_ARRAY Features,
FEATURE_ID *FeatureArray,
Expand Down
2 changes: 0 additions & 2 deletions src/classify/intmatcher.h
Expand Up @@ -113,7 +113,6 @@ class IntegerMatcher {
int FindGoodProtos(INT_CLASS ClassTemplate,
BIT_VECTOR ProtoMask,
BIT_VECTOR ConfigMask,
uint16_t BlobLength,
int16_t NumFeatures,
INT_FEATURE_ARRAY Features,
PROTO_ID *ProtoArray,
Expand All @@ -123,7 +122,6 @@ class IntegerMatcher {
int FindBadFeatures(INT_CLASS ClassTemplate,
BIT_VECTOR ProtoMask,
BIT_VECTOR ConfigMask,
uint16_t BlobLength,
int16_t NumFeatures,
INT_FEATURE_ARRAY Features,
FEATURE_ID *FeatureArray,
Expand Down

0 comments on commit dd79d56

Please sign in to comment.