diff options
author | Siarhei Vishniakou <svv@google.com> | 2022-07-29 02:58:24 +0000 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2022-08-03 16:28:24 +0000 |
commit | 1361b2abb1be5c3effd627627800dd7a7e291ad9 (patch) | |
tree | 3febb38924d0089cb1830b7626145b17d5fc79aa | |
parent | 5c3b770de0d6517550e8e5c889a9cd0579dd8d62 (diff) | |
download | libpalmrejection-1361b2abb1be5c3effd627627800dd7a7e291ad9.tar.gz |
Remove unused variable max_sequence_start_count_for_inference
This variable is always zero and is undocumented. Remove it.
Bug: 240168494
Test: autoninja -C out/Default events_unittests
Test: autoninja -C out/Default evdev
Change-Id: I06bb8b437847620dd5b2d00ec790d497e61c65f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3787688
Commit-Queue: Siarhei Vishniakou <svv@google.com>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Xinglong Luan <alanlxl@chromium.org>
Auto-Submit: Siarhei Vishniakou <svv@google.com>
Cr-Commit-Position: refs/heads/main@{#1029604}
-rw-r--r-- | ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc | 3 | ||||
-rw-r--r-- | ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc index 1e5724c..49c2a4e 100644 --- a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc +++ b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc @@ -277,8 +277,7 @@ bool NeuralStylusPalmDetectionFilter::ShouldDecideStroke( return false; // Only inference at start. - if (stroke.samples_seen() > - config.max_sequence_start_count_for_inference + config.max_sample_count) + if (stroke.samples_seen() > config.max_sample_count) return false; return true; } diff --git a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h index c2f4863..dab5455 100644 --- a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h +++ b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h @@ -45,8 +45,6 @@ struct COMPONENT_EXPORT(EVDEV) NeuralStylusPalmDetectionFilterModelConfig { // Minimum count of samples for a stroke to be considered as a neighbor. uint32_t neighbor_min_sample_count = 0; - uint32_t max_sequence_start_count_for_inference = 0; - bool include_sequence_count_in_strokes = false; // If this number is positive, short strokes with a touch major greater than |