Skip to content

Commit c2781e9

Browse files
committed
MAGE-899 Remove 7 year old API warning
1 parent 2d3b07f commit c2781e9

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

view/frontend/web/js/autocomplete.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ define([
5353
this.buildAutocomplete($);
5454
},
5555

56-
5756
/**
5857
* Setup the autocomplete search input
5958
* For autocomplete feature is used Algolia's autocomplete.js library
@@ -131,24 +130,6 @@ define([
131130
plugins
132131
};
133132

134-
// DEPRECATED Do not use - Retained for backward compatibility but `algoliaHookBeforeAutocompleteStart` will be removed in a future version
135-
if (typeof algoliaHookBeforeAutocompleteStart === 'function') {
136-
console.warn(
137-
"Deprecated! You are using an old API for Algolia's front end hooks. " +
138-
'Please, replace your hook method with new hook API. ' +
139-
'More information you can find on https://www.algolia.com/doc/integration/magento-2/customize/custom-front-end-events/'
140-
);
141-
142-
const hookResult = algoliaHookBeforeAutocompleteStart(
143-
sources,
144-
options,
145-
searchClient
146-
);
147-
148-
sources = hookResult.shift();
149-
options = hookResult.shift();
150-
}
151-
152133
options = algoliaCommon.triggerHooks('afterAutocompleteOptions', options);
153134

154135
return options;

0 commit comments

Comments
 (0)