File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ define([
53
53
this . buildAutocomplete ( $ ) ;
54
54
} ,
55
55
56
-
57
56
/**
58
57
* Setup the autocomplete search input
59
58
* For autocomplete feature is used Algolia's autocomplete.js library
@@ -131,24 +130,6 @@ define([
131
130
plugins
132
131
} ;
133
132
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
-
152
133
options = algoliaCommon . triggerHooks ( 'afterAutocompleteOptions' , options ) ;
153
134
154
135
return options ;
You can’t perform that action at this time.
0 commit comments