diff --git a/calendar/base/content/preferences/general.js b/calendar/base/content/preferences/general.js index 303c6f9d27..0e13b47559 100644 --- a/calendar/base/content/preferences/general.js +++ b/calendar/base/content/preferences/general.js @@ -4,8 +4,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -Components.utils.import("resource://calendar/modules/calUtils.jsm"); - /** * Global Object to hold methods for the general pref pane */ @@ -31,33 +29,6 @@ var gCalendarGeneralPane = { updateSelectedLabel("dateformat"); updateUnitLabelPlural("defaultlength", "defaultlengthunit", "minutes"); this.updateDefaultTodoDates(); - - let tzMenuList = document.getElementById("calendar-timezone-menulist"); - let tzMenuPopup = document.getElementById("calendar-timezone-menupopup"); - - let tzService = cal.getTimezoneService(); - let tzids = {}; - let displayNames = []; - // don't rely on what order the timezone-service gives you - for (let tzid in fixIterator(tzService.timezoneIds)) { - let tz = tzService.getTimezone(tzid); - if (tz && !tz.isFloating && !tz.isUTC) { - let displayName = tz.displayName; - displayNames.push(displayName); - tzids[displayName] = tz.tzid; - } - } - // the display names need to be sorted - displayNames.sort(String.localeCompare); - for (let displayName of displayNames) { - addMenuItem(tzMenuPopup, displayName, tzids[displayName]); - } - - let prefValue = document.getElementById("calendar-timezone-local").value; - if (!prefValue) { - prefValue = calendarDefaultTimezone().tzid; - } - tzMenuList.value = prefValue; }, updateDefaultTodoDates: function gCGP_updateDefaultTodoDates() { @@ -80,3 +51,4 @@ var gCalendarGeneralPane = { document.getElementById("defaults-itemtype-deck").selectedPanel = panel; } }; + diff --git a/calendar/base/content/preferences/general.xul b/calendar/base/content/preferences/general.xul index eba799be47..ac3bef5de3 100644 --- a/calendar/base/content/preferences/general.xul +++ b/calendar/base/content/preferences/general.xul @@ -18,12 +18,8 @@