[gnome-continuous] disks: Drop some dead code



commit 8b7ddd23ff541aa1736ae49aa3f7a7514aba7ed5
Author: Colin Walters <walters verbum org>
Date:   Sun Nov 17 17:40:58 2013 -0500

    disks: Drop some dead code

 src/js/tasks/task-builddisks.js |    7 -------
 src/js/tasks/task-zdisks.js     |    3 ---
 2 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/src/js/tasks/task-builddisks.js b/src/js/tasks/task-builddisks.js
index e923dca..ebf9e9b 100644
--- a/src/js/tasks/task-builddisks.js
+++ b/src/js/tasks/task-builddisks.js
@@ -29,7 +29,6 @@ const Task = imports.task;
 const ProcUtil = imports.procutil;
 const BuildUtil = imports.buildutil;
 const LibQA = imports.libqa;
-const VersionedDir = imports.versioneddir;
 const JsonUtil = imports.jsonutil;
 const JSUtil = imports.jsutil;
 const GuestFish = imports.guestfish;
@@ -45,9 +44,6 @@ const TaskBuildDisks = new Lang.Class({
         TaskAfter: ['build'],
     },
 
-    // Legacy
-    _VERSION_RE: /^(\d+)\.(\d+)$/,
-
     _imageSubdir: 'images',
     _inheritPreviousDisk: true,
     _onlyTreeSuffixes: ['-runtime'],
@@ -55,7 +51,6 @@ const TaskBuildDisks = new Lang.Class({
     execute: function(cancellable) {
         let isLocal = this._buildName == 'local';
              let baseImageDir = this.workdir.resolve_relative_path(this._imageSubdir);
-        let baseImageVersionedDir = new VersionedDir.VersionedDir(baseImageDir, this._VERSION_RE);
         GSystem.file_ensure_directory(baseImageDir, true, cancellable);
 
              let currentImageLink = baseImageDir.get_child('current');
@@ -150,8 +145,6 @@ const TaskBuildDisks = new Lang.Class({
             GSystem.file_rename(newPreviousTmppath, previousImageLink, cancellable);
         }
         BuildUtil.atomicSymlinkSwap(baseImageDir.get_child('current'), targetImageDir, cancellable);
-
-        baseImageVersionedDir.cleanOldVersions(IMAGE_RETAIN_COUNT, cancellable);
     },
 
     _postDiskCreation: function(squashedName, diskPath, cancellable) {
diff --git a/src/js/tasks/task-zdisks.js b/src/js/tasks/task-zdisks.js
index 4639431..73cc8f3 100644
--- a/src/js/tasks/task-zdisks.js
+++ b/src/js/tasks/task-zdisks.js
@@ -31,9 +31,6 @@ const TaskZDisks = new Lang.Class({
         TaskScheduleMinSecs: 3*60*60,  // Only do this every 3 hours
     },
 
-    // Legacy
-    _VERSION_RE: /^(\d+)\.(\d+)$/,
-
     _imageSubdir: 'images/z',
     _inheritPreviousDisk: false,
     _onlyTreeSuffixes: ['-runtime', '-devel-debug'],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]