Skip to content

Commit

Permalink
Remove unused patching function
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Mar 31, 2024
1 parent 547e111 commit ea2b148
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions extension/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,6 @@ class AppGridExtension {
}
}

_patchCompareItems() {
this._debugMessage('Patching _compareItems');

//Patched version of _compareItems(), to apply custom order
let extensionSettings = this._extensionSettings;
let folderSettings = this._folderSettings;
return function _compareItemsWrapper(a, b) {
let folderPosition = extensionSettings.get_string('folder-order-position');
let folderArray = folderSettings.get_value('folder-children').get_strv();
return AppGridHelper.compareItems.call(this, a, b, folderPosition, folderArray);
};
}

_patchShell() {
//Patch the app comparison
this._injectionManager.overrideMethod(AppDisplay.AppDisplay.prototype,
Expand Down

0 comments on commit ea2b148

Please sign in to comment.