diff options
author | dgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-11 11:27:58 +0000 |
---|---|---|
committer | dgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-11 11:27:58 +0000 |
commit | bfdd4c0a78205b20aa76680ad2348bebb37091fd (patch) | |
tree | 36677a538f006263c6ac5c9faf0b4fd0cb637d2f | |
parent | 7964273e742463c74164c6742fe0cabcc0db7f9d (diff) | |
download | chromium_src-bfdd4c0a78205b20aa76680ad2348bebb37091fd.zip chromium_src-bfdd4c0a78205b20aa76680ad2348bebb37091fd.tar.gz chromium_src-bfdd4c0a78205b20aa76680ad2348bebb37091fd.tar.bz2 |
[filemanager] Removed unused code.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10014020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131750 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/file_manager/js/file_manager.js | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js index 336eabf..b1d5630 100644 --- a/chrome/browser/resources/file_manager/js/file_manager.js +++ b/chrome/browser/resources/file_manager/js/file_manager.js @@ -79,12 +79,6 @@ FileManager.prototype = { 'answer.py?hl=en&answer=1700055&topic=29026&ctx=topic'; /** - * Mnemonics for the recurse parameter of the copyFiles method. - */ - const CP_RECURSE = true; - const CP_NO_RECURSE = false; - - /** * Maximum amount of thumbnails in the preview pane. */ const MAX_PREVIEW_THUMBAIL_COUNT = 4; @@ -181,18 +175,6 @@ FileManager.prototype = { return child_path.indexOf(parent_path) == 0; } - /** - * Returns parent folder path of file path. - * - * @param {string} path The file path. - */ - function getParentPath(path) { - var parent = path.replace(/[\/]?[^\/]+[\/]?$/,''); - if (parent.length == 0) - parent = '/'; - return parent; - } - /** * Normalizes path not to start with / * @@ -3236,34 +3218,6 @@ FileManager.prototype = { bc.lastChild.style.width = (currentWidth - lastCrumbSeparatorWidth) + 'px'; }; - FileManager.prototype.formatMetadataValue_ = function(obj) { - if (typeof obj.type == 'undefined') { - return obj.value; - } else if (obj.type == 'duration') { - - - var totalSeconds = Math.floor(obj.value / 1000); - var hours = Math.floor(totalSeconds / 60 / 60); - - var fmtSkeleton; - - // Print hours if available - //TODO: dzvorygin use better skeletons when documentation become available - if (hours > 0) { - fmtSkeleton = 'hh:mm:ss'; - } else { - fmtSkeleton = 'mm:ss'; - } - - // Convert duration to milliseconds since time start - var date = new Date(parseInt(obj.value)); - - var fmt = this.locale_.createDateTimeFormat({skeleton:fmtSkeleton}); - - return fmt.format(date); - } - }; - FileManager.prototype.getThumbnailURL = function(entry, callback) { if (!entry) return; @@ -3291,15 +3245,6 @@ FileManager.prototype = { }); }; - FileManager.prototype.getDescription = function(entry, callback) { - if (!entry) - return; - - this.getMetadataProvider().fetch(entry.toURL(), function(metadata) { - callback(metadata.description); - }); - }; - FileManager.prototype.focusCurrentList_ = function() { if (this.listType_ == FileManager.ListType.DETAIL) this.table_.focus(); |