From 83a89767462c18c3147385561b561cd09a181319 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 23 Sep 2013 19:13:06 +0200 Subject: [PATCH] Remove unused assets --- app/assets/javascripts/main_worker.js | 1 - app/assets/javascripts/player.js | 2 - vendor/assets/javascripts/base64.min.js | 1 - vendor/assets/javascripts/screenfull.js | 103 ------------------------ vendor/assets/javascripts/utf8.js | 68 ---------------- 5 files changed, 175 deletions(-) delete mode 100644 vendor/assets/javascripts/base64.min.js delete mode 100644 vendor/assets/javascripts/screenfull.js delete mode 100644 vendor/assets/javascripts/utf8.js diff --git a/app/assets/javascripts/main_worker.js b/app/assets/javascripts/main_worker.js index c9bc503..49b73e4 100644 --- a/app/assets/javascripts/main_worker.js +++ b/app/assets/javascripts/main_worker.js @@ -2,7 +2,6 @@ //= require player/workers/common //= require underscore-min //= require backbone-min -//= require utf8 //= require extensions //= require player/brush //= require player/movie diff --git a/app/assets/javascripts/player.js b/app/assets/javascripts/player.js index e01e387..f96f7b9 100644 --- a/app/assets/javascripts/player.js +++ b/app/assets/javascripts/player.js @@ -1,6 +1,4 @@ //= require rAF -//= require base64.min -//= require utf8 //= require extensions //= require namespace //= require player/views/renderers/base diff --git a/vendor/assets/javascripts/base64.min.js b/vendor/assets/javascripts/base64.min.js deleted file mode 100644 index 903bba4..0000000 --- a/vendor/assets/javascripts/base64.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var a=typeof window!="undefined"?window:exports,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=function(){try{document.createElement("$")}catch(a){return a}}();a.btoa||(a.btoa=function(a){for(var d,e,f=0,g=b,h="";a.charAt(f|0)||(g="=",f%1);h+=g.charAt(63&d>>8-f%1*8)){e=a.charCodeAt(f+=.75);if(e>255)throw c;d=d<<8|e}return h}),a.atob||(a.atob=function(a){a=a.replace(/=+$/,"");if(a.length%4==1)throw c;for(var d=0,e,f,g=0,h="";f=a.charAt(g++);~f&&(e=d%4?e*64+f:f,d++%4)?h+=String.fromCharCode(255&e>>(-2*d&6)):0)f=b.indexOf(f);return h})})(); \ No newline at end of file diff --git a/vendor/assets/javascripts/screenfull.js b/vendor/assets/javascripts/screenfull.js deleted file mode 100644 index 7ff78c3..0000000 --- a/vendor/assets/javascripts/screenfull.js +++ /dev/null @@ -1,103 +0,0 @@ -/*global Element */ -(function( window, document ) { - 'use strict'; - - var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element, // IE6 throws without typeof check - - fn = (function() { - var fnMap = [ - [ - 'requestFullscreen', - 'exitFullscreen', - 'fullscreenchange', - 'fullscreen', - 'fullscreenElement', - 'fullscreenerror' - ], - [ - 'webkitRequestFullScreen', - 'webkitCancelFullScreen', - 'webkitfullscreenchange', - 'webkitIsFullScreen', - 'webkitCurrentFullScreenElement', - 'webkitfullscreenerror' - - ], - [ - 'mozRequestFullScreen', - 'mozCancelFullScreen', - 'mozfullscreenchange', - 'mozFullScreen', - 'mozFullScreenElement', - 'mozfullscreenerror' - ] - ], - i = 0, - l = fnMap.length, - ret = {}, - val, - valLength; - - for ( ; i < l; i++ ) { - val = fnMap[ i ]; - if ( val && val[1] in document ) { - for ( i = 0, valLength = val.length; i < valLength; i++ ) { - ret[ fnMap[0][ i ] ] = val[ i ]; - } - return ret; - } - } - return false; - })(), - - screenfull = { - isFullscreen: document[ fn.fullscreen ], - element: document[ fn.fullscreenElement ], - - request: function( elem ) { - var request = fn.requestFullscreen; - - elem = elem || document.documentElement; - elem[ request ]( keyboardAllowed && Element.ALLOW_KEYBOARD_INPUT ); - - // Work around Safari 5.1 bug: reports support for - // keyboard in fullscreen even though it doesn't. - if ( !document.isFullscreen ) { - elem[ request ](); - } - }, - - exit: function() { - document[ fn.exitFullscreen ](); - }, - - toggle: function( elem ) { - if ( this.isFullscreen ) { - this.exit(); - } else { - this.request( elem ); - } - }, - - onchange: function() {}, - onerror: function() {} - }; - - if ( !fn ) { - window.screenfull = null; - return; - } - - document.addEventListener( fn.fullscreenchange, function( e ) { - screenfull.isFullscreen = document[ fn.fullscreen ]; - screenfull.element = document[ fn.fullscreenElement ]; - screenfull.onchange.call( screenfull, e ); - }); - - document.addEventListener( fn.fullscreenerror, function( e ) { - screenfull.onerror.call( screenfull, e ); - }); - - window.screenfull = screenfull; - -})( window, document ); \ No newline at end of file diff --git a/vendor/assets/javascripts/utf8.js b/vendor/assets/javascripts/utf8.js deleted file mode 100644 index cc51ef1..0000000 --- a/vendor/assets/javascripts/utf8.js +++ /dev/null @@ -1,68 +0,0 @@ -/** -* -* UTF-8 data encode / decode -* http://www.webtoolkit.info/ -* -**/ - -var Utf8 = { - - // public method for url encoding - encode : function (string) { - string = string.replace(/\r\n/g,"\n"); - var utftext = ""; - - for (var n = 0; n < string.length; n++) { - - var c = string.charCodeAt(n); - - if (c < 128) { - utftext += String.fromCharCode(c); - } - else if((c > 127) && (c < 2048)) { - utftext += String.fromCharCode((c >> 6) | 192); - utftext += String.fromCharCode((c & 63) | 128); - } - else { - utftext += String.fromCharCode((c >> 12) | 224); - utftext += String.fromCharCode(((c >> 6) & 63) | 128); - utftext += String.fromCharCode((c & 63) | 128); - } - - } - - return utftext; - }, - - // public method for url decoding - decode : function (utftext) { - var string = ""; - var i = 0; - var c = c1 = c2 = 0; - - while ( i < utftext.length ) { - - c = utftext.charCodeAt(i); - - if (c < 128) { - string += String.fromCharCode(c); - i++; - } - else if((c > 191) && (c < 224)) { - c2 = utftext.charCodeAt(i+1); - string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); - i += 2; - } - else { - c2 = utftext.charCodeAt(i+1); - c3 = utftext.charCodeAt(i+2); - string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); - i += 3; - } - - } - - return string; - } - -}