From bb5184bc50a0dfd63c73bbcb718f6b837bc98eb1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 29 Sep 2020 15:32:07 -0600 Subject: [PATCH] Remove unused function --- src/utils/WidgetUtils.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/utils/WidgetUtils.js b/src/utils/WidgetUtils.js index 57459ba897..9373738bf8 100644 --- a/src/utils/WidgetUtils.js +++ b/src/utils/WidgetUtils.js @@ -494,16 +494,4 @@ export default class WidgetUtils { IntegrationManagers.sharedInstance().getPrimaryManager().open(room, 'type_' + app.type, app.id); } } - - static snapshotWidget(app) { - console.log("Requesting widget snapshot"); - ActiveWidgetStore.getWidgetMessaging(app.id).getScreenshot().catch((err) => { - console.error("Failed to get screenshot", err); - }).then((screenshot) => { - dis.dispatch({ - action: 'picture_snapshot', - file: screenshot, - }, true); - }); - } }