[retro-gtk] retro-gobject: Remove rarely used Core.deinit()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-gobject: Remove rarely used Core.deinit()
- Date: Thu, 26 Jan 2017 10:31:44 +0000 (UTC)
commit 3121bf3a173a42cd2420f1bdbead7d5bac873e38
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Jan 25 18:57:18 2017 +0100
retro-gobject: Remove rarely used Core.deinit()
Replaces the only private call to Core.deinit() by its small content.
https://bugzilla.gnome.org/show_bug.cgi?id=777489
retro-gobject/core.vala | 20 ++++----------------
1 files changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/retro-gobject/core.vala b/retro-gobject/core.vala
index fa0cd5a..8e30dab 100644
--- a/retro-gobject/core.vala
+++ b/retro-gobject/core.vala
@@ -242,13 +242,11 @@ public class Core : Object {
}
~Core () {
- if (game_loaded) {
- push_cb_data ();
+ push_cb_data ();
+ if (game_loaded)
module.unload_game ();
- pop_cb_data ();
- }
-
- deinit ();
+ module.deinit ();
+ pop_cb_data ();
}
/**
@@ -268,16 +266,6 @@ public class Core : Object {
}
/**
- * Deinitializes the module.
- */
- public void deinit () {
- push_cb_data ();
- module.deinit ();
- pop_cb_data ();
- is_initiated = false;
- }
-
- /**
* Sets device to be used for player 'port'.
*
* @param port the port on wich to connect a device
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]