From 7b67066f7d4687c874c23be92b73736fa398934b Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 24 Oct 2016 10:58:05 +0800 Subject: [PATCH] remove dead code --- frontend/src/Metamaps/Util.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/frontend/src/Metamaps/Util.js b/frontend/src/Metamaps/Util.js index 749dc32e..e1e43141 100644 --- a/frontend/src/Metamaps/Util.js +++ b/frontend/src/Metamaps/Util.js @@ -116,14 +116,6 @@ const Util = { return rgb }, - checkURLisImage: function (url) { - // when the page reloads the following regular expression will be screwed up - // please replace it with this one before you save: /*backslashhere*.(jpeg|jpg|gif|png)$/ - return (url.match(/\.(jpeg|jpg|gif|png)$/) != null) - }, - checkURLisYoutubeVideo: function (url) { - return (url.match(/^https?:\/\/(?:www\.)?youtube.com\/watch\?(?=[^?]*v=\w+)(?:[^\s?]+)?$/) != null) - }, openLink: function(url){ var win = (url !== "") ? window.open(url, '_blank') : "empty";