Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms-engine] Removed stale test code
  • Loading branch information
monich committed May 17, 2014
1 parent 75b042f commit e0268f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
31 changes: 0 additions & 31 deletions mms-engine/mms_engine.c
Expand Up @@ -24,10 +24,6 @@
/* Generated code */
#include "org.nemomobile.MmsEngine.h"

#ifdef DEBUG
# define ENABLE_TEST
#endif

struct mms_engine {
GObject parent;
const MMSConfig* config;
Expand All @@ -49,9 +45,6 @@ struct mms_engine {
gulong cancel_signal_id;
gulong set_log_level_signal_id;
gulong set_log_type_signal_id;
#ifdef ENABLE_TEST
gulong test_signal_id;
#endif
};

typedef GObjectClass MMSEngineClass;
Expand Down Expand Up @@ -117,21 +110,6 @@ mms_engine_start_timeout_schedule(
mms_engine_start_timeout_callback, engine);
}

#ifdef ENABLE_TEST
/* org.nemomobile.MmsEngine.test */
static
gboolean
mms_engine_handle_test(
OrgNemomobileMmsEngine* proxy,
GDBusMethodInvocation* call,
MMSEngine* engine)
{
MMS_DEBUG("Test");
org_nemomobile_mms_engine_complete_test(proxy, call);
return TRUE;
}
#endif /* ENABLE_TEST */

/* org.nemomobile.MmsEngine.sendMessage */
static
gboolean
Expand Down Expand Up @@ -476,12 +454,6 @@ mms_engine_new(
g_signal_connect(mms->proxy, "handle-set-log-type",
G_CALLBACK(mms_engine_handle_set_log_type), mms);

#ifdef ENABLE_TEST
mms->test_signal_id =
g_signal_connect(mms->proxy, "handle-test",
G_CALLBACK(mms_engine_handle_test), mms);
#endif

return mms;
}

Expand Down Expand Up @@ -594,9 +566,6 @@ mms_engine_dispose(
mms_engine_unregister(e);
mms_engine_start_timeout_cancel(e);
if (e->proxy) {
#ifdef ENABLE_TEST
g_signal_handler_disconnect(e->proxy, e->test_signal_id);
#endif
g_signal_handler_disconnect(e->proxy, e->send_message_id);
g_signal_handler_disconnect(e->proxy, e->push_signal_id);
g_signal_handler_disconnect(e->proxy, e->push_notify_signal_id);
Expand Down
2 changes: 0 additions & 2 deletions mms-engine/org.nemomobile.MmsEngine.xml
Expand Up @@ -198,7 +198,5 @@
<arg type="s" name="type" direction="in"/>
</method>

<method name="test"/>

</interface>
</node>

0 comments on commit e0268f3

Please sign in to comment.