messageList: Drop unused Message._onDestroy()

This method isn't used and users (e.g extensions) of `Message` can connect
to the destroy signal if they need it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3429>
This commit is contained in:
Julian Sparber 2024-05-22 10:45:04 +02:00
parent 88f551d0a8
commit 03e5d4bdd8

View File

@ -489,8 +489,6 @@ export const Message = GObject.registerClass({
});
contentBox.add_child(this._bodyBin);
this.connect('destroy', this._onDestroy.bind(this));
this._header.closeButton.connect('clicked', this.close.bind(this));
this._header.closeButton.visible = this.canClose();
@ -642,9 +640,6 @@ export const Message = GObject.registerClass({
return false;
}
_onDestroy() {
}
vfunc_key_press_event(event) {
let keysym = event.get_key_symbol();