sessionMode: Rename _getModes()

Since commit da4238ec68, the function doesn't return anything,
so rename it to _loadModes() to reflect this.

https://bugzilla.gnome.org/show_bug.cgi?id=720017
This commit is contained in:
Florian Müllner 2013-12-06 21:28:23 +01:00
parent 46bac3069e
commit c9f2a0f694

View File

@ -128,14 +128,14 @@ function _loadMode(file, info) {
_modes[modeName]['isPrimary'] = true;
}
function _getModes() {
function _loadModes() {
FileUtils.collectFromDatadirs('modes', false, _loadMode);
}
function listModes() {
let modes = _getModes();
_loadModes();
modes.forEach(function() {
let names = Object.getOwnPropertyNames(modes);
let names = Object.getOwnPropertyNames(_modes);
for (let i = 0; i < names.length; i++)
if (_modes[names[i]].isPrimary)
print(names[i]);