mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 12:45:38 +00:00
refactor(cache): remove unused getCacheStats and purgeCache IPC actions
This commit is contained in:
@@ -306,20 +306,6 @@ export const refreshSystemProxy = () => (dispatch, getState) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const getCacheStats = () => () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const { ipcRenderer } = window;
|
||||
ipcRenderer.invoke('renderer:get-cache-stats').then(resolve).catch(reject);
|
||||
});
|
||||
};
|
||||
|
||||
export const purgeCache = () => () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const { ipcRenderer } = window;
|
||||
ipcRenderer.invoke('renderer:purge-cache').then(resolve).catch(reject);
|
||||
});
|
||||
};
|
||||
|
||||
export const clearHttpHttpsAgentCache = () => () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const { ipcRenderer } = window;
|
||||
|
||||
Reference in New Issue
Block a user