summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/shortcuts_dashboard_navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/shortcuts_dashboard_navigation.js')
-rw-r--r--app/assets/javascripts/shortcuts_dashboard_navigation.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/assets/javascripts/shortcuts_dashboard_navigation.js b/app/assets/javascripts/shortcuts_dashboard_navigation.js
deleted file mode 100644
index 9f69f110d06..00000000000
--- a/app/assets/javascripts/shortcuts_dashboard_navigation.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import { visitUrl } from './lib/utils/url_utility';
-
-/**
- * Helper function that finds the href of the fiven selector and updates the location.
- *
- * @param {String} selector
- */
-export default function findAndFollowLink(selector) {
- const element = document.querySelector(selector);
- const link = element && element.getAttribute('href');
-
- if (link) {
- visitUrl(link);
- }
-}