From 5daa8d809b445955102e763f44617f3888b0b191 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 26 Dec 2011 18:06:58 -0500 Subject: [PATCH] Remove uses of goog.array --- web_frontend/main.js | 3 +-- web_frontend/path_control.js | 4 +--- web_frontend/tv_renamer.js | 13 ------------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/web_frontend/main.js b/web_frontend/main.js index a6821dd..f4da15e 100644 --- a/web_frontend/main.js +++ b/web_frontend/main.js @@ -12,7 +12,6 @@ goog.provide('armadillo.App'); goog.require('armadillo.File'); goog.require('armadillo.Version'); -goog.require('goog.array'); goog.require('goog.string.format'); armadillo.App = function() { @@ -75,7 +74,7 @@ armadillo.App.prototype.list = function(path) { // Add a previous directory entry. if (path != '/' && path != '') - goog.array.insertAt(data, '../', 0); + data.splice(0, 1, '../'); // Add items for each entry. $.each(data, function(i, file) { diff --git a/web_frontend/path_control.js b/web_frontend/path_control.js index 3c6e8a2..e9d64ea 100644 --- a/web_frontend/path_control.js +++ b/web_frontend/path_control.js @@ -9,8 +9,6 @@ goog.provide('armadillo.PathControl'); -goog.require('goog.array'); - /** * Creates a new path editing control for a given path. * @param {string} path The path to create an editor for @@ -93,7 +91,7 @@ armadillo.PathControl.prototype.decorateInternal = function(element) { // If the last component is emtpy, do not use it because it means a directory // is being moved. if (components[components.length - 1] == '') { - goog.array.removeAt(components, components.length - 1); + components.splice(-1); } var path = ''; diff --git a/web_frontend/tv_renamer.js b/web_frontend/tv_renamer.js index a42de8a..296a553 100644 --- a/web_frontend/tv_renamer.js +++ b/web_frontend/tv_renamer.js @@ -9,31 +9,18 @@ goog.provide('armadillo.TVRenamer'); -goog.require('goog.Disposable'); - /** * Creates a helper to rename a file in a pretty format for TV episodes. * @extends {goog.Disposable} * @constructor */ armadillo.TVRenamer = function(file) { - goog.base(this); - /** * The file object * @type {armadillo.File} */ this.file_ = file; } -goog.inherits(armadillo.TVRenamer, goog.Disposable); - -/** - * @inheritDoc - */ -armadillo.TVRenamer.prototype.disposeInternal = function() { - goog.base(this, 'disposeInternal'); - this.file_ = null; -}; /** * Performs the information lookup and renames the file if the lookup is -- 2.22.5