mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 02:17:59 +01:00
Remove redundant use of Option.validateCompleter.
This is run by default now. --HG-- extra : rebase_source : 5e8a58550a0c6c3c9fb0cc146bb6405009a24ade
This commit is contained in:
@@ -582,7 +582,6 @@ const Option = Class("Option", {
|
||||
throw ValueError(error);
|
||||
},
|
||||
|
||||
// TODO: Run this by default?
|
||||
/**
|
||||
* Validates the specified <b>values</b> against values generated by the
|
||||
* option's completer function.
|
||||
|
||||
@@ -782,8 +782,7 @@ const Player = Module("player", {
|
||||
["0", "Repeat none"],
|
||||
["1", "Repeat one"],
|
||||
["2", "Repeat all"]
|
||||
],
|
||||
validator: Option.validateCompleter
|
||||
]
|
||||
});
|
||||
|
||||
options.add(["shuffle"],
|
||||
|
||||
@@ -883,8 +883,7 @@ const Mail = Module("mail", {
|
||||
"Set the archive folder",
|
||||
"string", "Archive",
|
||||
{
|
||||
completer: function (context) completion.mailFolder(context),
|
||||
validator: Option.validateCompleter
|
||||
completer: function (context) completion.mailFolder(context)
|
||||
});
|
||||
|
||||
// TODO: generate the possible values dynamically from the menu
|
||||
@@ -907,8 +906,7 @@ const Mail = Module("mail", {
|
||||
["classic", "Classic View"],
|
||||
["wide", "Wide View"],
|
||||
["vertical", "Vertical View"]
|
||||
],
|
||||
validator: Option.validateCompleter
|
||||
]
|
||||
});
|
||||
|
||||
options.add(["smtpserver", "smtp"],
|
||||
@@ -921,8 +919,7 @@ const Mail = Module("mail", {
|
||||
services.get("smtpService").defaultServer = server;
|
||||
return value;
|
||||
},
|
||||
completer: function (context) [[s.key, s.serverURI] for ([, s] in Iterator(mail.smtpServers))],
|
||||
validator: Option.validateCompleter
|
||||
completer: function (context) [[s.key, s.serverURI] for ([, s] in Iterator(mail.smtpServers))]
|
||||
});
|
||||
|
||||
/*options.add(["threads"],
|
||||
|
||||
Reference in New Issue
Block a user