1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 08:05:46 +01:00

Remove some unused functionality from messages.jsm.

This commit is contained in:
Kris Maglione
2011-08-25 20:58:32 -04:00
parent 26ac4f3078
commit 593fc09e47
3 changed files with 32 additions and 29 deletions

View File

@@ -253,10 +253,14 @@ var ConfigBase = Class("ConfigBase", {
* Returns true if the current Gecko runtime is of the given version
* or greater.
*
* @param {string} ver The required version.
* @param {string} min The minimum required version. @optional
* @param {string} max The maximum required version. @optional
* @returns {boolean}
*/
haveGecko: function (ver) services.versionCompare.compare(services.runtime.platformVersion, ver) >= 0,
haveGecko: function (min, max) let ({ compare } = services.versionCompare,
{ platformVersion } = services.runtime)
(min == null || compare(platformVersion, min) >= 0) &&
(max == null || compare(platformVersion, max) < 0),
/** Dactyl's notion of the current operating system platform. */
OS: memoize({