@@ -26,8 +26,6 @@ export interface Routes {
26
26
content : {
27
27
imageWithMetadata : string ;
28
28
createImageVariant : string ;
29
- loadMasterPlugins : string ;
30
- loadPluginViews : string ;
31
29
uploadAsset : string ;
32
30
} ;
33
31
service : {
@@ -206,26 +204,6 @@ export default (routes: Routes) => {
206
204
} ) ) . then ( response => fetchWithErrorHandling . parseJson ( response ) )
207
205
. catch ( reason => fetchWithErrorHandling . generalErrorHandler ( reason ) ) ;
208
206
209
- const loadMasterPlugins = ( workspaceName : WorkspaceName , dimensions : DimensionCombination ) => fetchWithErrorHandling . withCsrfToken ( ( ) => ( {
210
- url : urlWithParams ( routes . core . content . loadMasterPlugins , { workspaceName, dimensions} ) ,
211
- method : 'GET' ,
212
- credentials : 'include' ,
213
- headers : {
214
- 'Content-Type' : 'application/json'
215
- }
216
- } ) ) . then ( response => fetchWithErrorHandling . parseJson ( response ) )
217
- . catch ( reason => fetchWithErrorHandling . generalErrorHandler ( reason ) ) ;
218
-
219
- const loadPluginViews = ( identifier : string , workspaceName : WorkspaceName , dimensions : DimensionCombination ) => fetchWithErrorHandling . withCsrfToken ( ( ) => ( {
220
- url : urlWithParams ( routes . core . content . loadPluginViews , { identifier, workspaceName, dimensions} ) ,
221
- method : 'GET' ,
222
- credentials : 'include' ,
223
- headers : {
224
- 'Content-Type' : 'application/json'
225
- }
226
- } ) ) . then ( response => fetchWithErrorHandling . parseJson ( response ) )
227
- . catch ( reason => fetchWithErrorHandling . generalErrorHandler ( reason ) ) ;
228
-
229
207
const contentDimensions = ( dimensionName : DimensionName , chosenDimensionPresets : DimensionPresetCombination ) => fetchWithErrorHandling . withCsrfToken ( ( ) => ( {
230
208
url : urlWithParams ( `${ routes . core . service . contentDimensions } /${ dimensionName } .json` , { chosenDimensionPresets} ) ,
231
209
method : 'GET' ,
@@ -681,8 +659,6 @@ export default (routes: Routes) => {
681
659
cutNodes,
682
660
clearClipboard,
683
661
createImageVariant,
684
- loadMasterPlugins,
685
- loadPluginViews,
686
662
uploadAsset,
687
663
assetProxyImport,
688
664
assetProxySearch,
0 commit comments