summaryrefslogtreecommitdiffstats
path: root/browser/components/urlbar/private/BaseFeature.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/urlbar/private/BaseFeature.sys.mjs')
-rw-r--r--browser/components/urlbar/private/BaseFeature.sys.mjs28
1 files changed, 14 insertions, 14 deletions
diff --git a/browser/components/urlbar/private/BaseFeature.sys.mjs b/browser/components/urlbar/private/BaseFeature.sys.mjs
index d95ace6940..7155d9b7e6 100644
--- a/browser/components/urlbar/private/BaseFeature.sys.mjs
+++ b/browser/components/urlbar/private/BaseFeature.sys.mjs
@@ -89,10 +89,10 @@ export class BaseFeature {
* This method should initialize or uninitialize any state related to the
* feature.
*
- * @param {boolean} enabled
+ * @param {boolean} _enabled
* Whether the feature should be enabled or not.
*/
- enable(enabled) {}
+ enable(_enabled) {}
/**
* If the feature manages suggestions from remote settings that should be
@@ -100,12 +100,12 @@ export class BaseFeature {
* method. It should return remote settings suggestions matching the given
* search string.
*
- * @param {string} searchString
+ * @param {string} _searchString
* The search string.
* @returns {Array}
* An array of matching suggestions, or null if not implemented.
*/
- async queryRemoteSettings(searchString) {
+ async queryRemoteSettings(_searchString) {
return null;
}
@@ -114,10 +114,10 @@ export class BaseFeature {
* override this method. It should fetch the data and build whatever data
* structures are necessary to support the feature.
*
- * @param {RemoteSettings} rs
+ * @param {RemoteSettings} _rs
* The `RemoteSettings` client object.
*/
- async onRemoteSettingsSync(rs) {}
+ async onRemoteSettingsSync(_rs) {}
/**
* If the feature manages suggestions that either aren't served by Merino or
@@ -126,12 +126,12 @@ export class BaseFeature {
* given suggestion. A telemetry type uniquely identifies a type of suggestion
* as well as the kind of `UrlbarResult` instances created from it.
*
- * @param {object} suggestion
+ * @param {object} _suggestion
* A suggestion from either remote settings or Merino.
* @returns {string}
* The suggestion's telemetry type.
*/
- getSuggestionTelemetryType(suggestion) {
+ getSuggestionTelemetryType(_suggestion) {
return this.merinoProvider;
}
@@ -143,13 +143,13 @@ export class BaseFeature {
* fine to rely on the default implementation here because the suggestion type
* will be enabled iff the feature itself is enabled.
*
- * @param {string} type
+ * @param {string} _type
* A Rust suggestion type name as defined in `suggest.udl`. See also
* `rustSuggestionTypes`.
* @returns {boolean}
* Whether the suggestion type is enabled.
*/
- isRustSuggestionTypeEnabled(type) {
+ isRustSuggestionTypeEnabled(_type) {
return true;
}
@@ -158,18 +158,18 @@ export class BaseFeature {
* override this method. It should return a new `UrlbarResult` for a given
* suggestion, which can come from either remote settings or Merino.
*
- * @param {UrlbarQueryContext} queryContext
+ * @param {UrlbarQueryContext} _queryContext
* The query context.
- * @param {object} suggestion
+ * @param {object} _suggestion
* The suggestion from either remote settings or Merino.
- * @param {string} searchString
+ * @param {string} _searchString
* The search string that was used to fetch the suggestion. It may be
* different from `queryContext.searchString` due to trimming, lower-casing,
* etc. This is included as a param in case it's useful.
* @returns {UrlbarResult}
* A new result for the suggestion.
*/
- async makeResult(queryContext, suggestion, searchString) {
+ async makeResult(_queryContext, _suggestion, _searchString) {
return null;
}