Skip to content

Commit dd79d56

Browse files
committed
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 <[email protected]>
1 parent ac7ea43 commit dd79d56

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/classify/adaptmatch.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,6 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
17541754
int NumOldProtos;
17551755
int NumBadFeatures;
17561756
int MaxProtoId, OldMaxProtoId;
1757-
int BlobLength = 0;
17581757
int MaskSize;
17591758
int ConfigId;
17601759
TEMP_CONFIG Config;
@@ -1778,7 +1777,7 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
17781777
OldMaxProtoId = IClass->NumProtos - 1;
17791778

17801779
NumOldProtos = im_.FindGoodProtos(IClass, AllProtosOn, AllConfigsOff,
1781-
BlobLength, NumFeatures, Features,
1780+
NumFeatures, Features,
17821781
OldProtos, classify_adapt_proto_threshold,
17831782
debug_level);
17841783

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

17901789
NumBadFeatures = im_.FindBadFeatures(IClass, TempProtoMask, AllConfigsOn,
1791-
BlobLength, NumFeatures, Features,
1790+
NumFeatures, Features,
17921791
BadFeatures,
17931792
classify_adapt_feature_threshold,
17941793
debug_level);

src/classify/intmatcher.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ int Classify::PruneClasses(const INT_TEMPLATES_STRUCT* int_templates,
458458
* Globals:
459459
* - local_matcher_multiplier_ Normalization factor multiplier
460460
* param ClassTemplate Prototypes & tables for a class
461-
* param BlobLength Length of unormalized blob
462461
* param NumFeatures Number of features in blob
463462
* param Features Array of features
464463
* param NormalizationFactor Fudge factor from blob normalization process
@@ -537,7 +536,6 @@ void IntegerMatcher::Match(INT_CLASS ClassTemplate,
537536
* param ClassTemplate Prototypes & tables for a class
538537
* param ProtoMask AND Mask for proto word
539538
* param ConfigMask AND Mask for config word
540-
* param BlobLength Length of unormalized blob
541539
* param NumFeatures Number of features in blob
542540
* param Features Array of features
543541
* param ProtoArray Array of good protos
@@ -549,7 +547,6 @@ int IntegerMatcher::FindGoodProtos(
549547
INT_CLASS ClassTemplate,
550548
BIT_VECTOR ProtoMask,
551549
BIT_VECTOR ConfigMask,
552-
uint16_t BlobLength,
553550
int16_t NumFeatures,
554551
INT_FEATURE_ARRAY Features,
555552
PROTO_ID *ProtoArray,
@@ -606,7 +603,6 @@ int IntegerMatcher::FindGoodProtos(
606603
* @param ClassTemplate Prototypes & tables for a class
607604
* @param ProtoMask AND Mask for proto word
608605
* @param ConfigMask AND Mask for config word
609-
* @param BlobLength Length of unormalized blob
610606
* @param NumFeatures Number of features in blob
611607
* @param Features Array of features
612608
* @param FeatureArray Array of bad features
@@ -618,7 +614,6 @@ int IntegerMatcher::FindBadFeatures(
618614
INT_CLASS ClassTemplate,
619615
BIT_VECTOR ProtoMask,
620616
BIT_VECTOR ConfigMask,
621-
uint16_t BlobLength,
622617
int16_t NumFeatures,
623618
INT_FEATURE_ARRAY Features,
624619
FEATURE_ID *FeatureArray,

src/classify/intmatcher.h

-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ class IntegerMatcher {
113113
int FindGoodProtos(INT_CLASS ClassTemplate,
114114
BIT_VECTOR ProtoMask,
115115
BIT_VECTOR ConfigMask,
116-
uint16_t BlobLength,
117116
int16_t NumFeatures,
118117
INT_FEATURE_ARRAY Features,
119118
PROTO_ID *ProtoArray,
@@ -123,7 +122,6 @@ class IntegerMatcher {
123122
int FindBadFeatures(INT_CLASS ClassTemplate,
124123
BIT_VECTOR ProtoMask,
125124
BIT_VECTOR ConfigMask,
126-
uint16_t BlobLength,
127125
int16_t NumFeatures,
128126
INT_FEATURE_ARRAY Features,
129127
FEATURE_ID *FeatureArray,

0 commit comments

Comments
 (0)