Skip to content

Commit

Permalink
Removed unused function from legacy indicator class
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Jul 10, 2023
1 parent 19ab59a commit dcdc231
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions extension/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@ const PrivacyIndicator = GObject.registerClass(
this._locationSettings = new Gio.Settings({schema: 'org.gnome.system.location'});
}

_createSettingToggle(popupLabel, iconName) {
//Create sub menu with an icon
let subMenu = new PopupMenu.PopupSubMenuMenuItem(popupLabel, true);
subMenu.icon.icon_name = iconName;

//Add a toggle to the submenu, then return it
subMenu.menu.addMenuItem(new PopupMenu.PopupSwitchMenuItem(_('Enabled'), true, null));
return subMenu;
}

addEntries() {
this.menu.addMenuItem(new PopupMenu.PopupMenuItem(
_('Privacy Settings'),
Expand Down

0 comments on commit dcdc231

Please sign in to comment.