[Pkg-mozext-commits] [greasemonkey] 03/06: Remove unused code.

David Prévot taffit at moszumanska.debian.org
Mon Jan 13 01:12:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit da384a412e10feaf17e23455f18485498b50c263
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Fri Jan 10 12:17:10 2014 -0500

    Remove unused code.
    
    This code only migrated one of the 1.13 betas to the final layout.
    
    Fixes #1853
---
 modules/miscapis.js | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/modules/miscapis.js b/modules/miscapis.js
index 3734f16..f557856 100644
--- a/modules/miscapis.js
+++ b/modules/miscapis.js
@@ -20,22 +20,9 @@ function GM_ScriptStorage(script) {
     .createBundle("chrome://greasemonkey/locale/greasemonkey.properties");
 }
 
-GM_ScriptStorage.prototype.dbFileName = 'values.db';
 
 GM_ScriptStorage.prototype.__defineGetter__('dbFile',
 function GM_ScriptStorage_getDbFile() {
-  // TODO: Remove this before 1.13 is final.
-  // Migrate early beta in-script-dir values DB to beside-script-dir.
-  var legacyDbFile = this._script.baseDirFile;
-  legacyDbFile.append('values.db');
-  if (legacyDbFile.exists()) {
-    try {
-      legacyDbFile.moveTo(GM_util.scriptDir(), this._script.baseDirName + '.db');
-    } catch (e) {
-      dump('Could not migrate legacy db file:\n' + e + '\n');
-    }
-  }
-
   var file = GM_util.scriptDir();
   file.append(this._script.baseDirName + '.db');
   return file;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list