gio: fix a leftover GSimpleAsyncResult usage

And remove remaining unnecessary gsimpleasyncresult.h includes
This commit is contained in:
Dan Winship 2015-08-07 09:48:27 -04:00
parent e02fa68068
commit a8eedd00a7
13 changed files with 6 additions and 17 deletions

View File

@ -24,7 +24,6 @@
#include "gconverterinputstream.h"
#include "gpollableinputstream.h"
#include "gsimpleasyncresult.h"
#include "gcancellable.h"
#include "gioenumtypes.h"
#include "gioerror.h"

View File

@ -24,7 +24,6 @@
#include "gconverteroutputstream.h"
#include "gpollableoutputstream.h"
#include "gsimpleasyncresult.h"
#include "gcancellable.h"
#include "gioenumtypes.h"
#include "gioerror.h"

View File

@ -27,7 +27,6 @@
#include "gioenumtypes.h"
#include "ginitable.h"
#include "gasyncresult.h"
#include "gsimpleasyncresult.h"
#include "gasyncinitable.h"
#include "gdbusconnection.h"
#include "gdbusutils.h"

View File

@ -31,7 +31,6 @@
#include "gtlsdatabase.h"
#include "gtlsfiledatabase.h"
#include "gtlsserverconnection.h"
#include "gsimpleasyncresult.h"
#include "giomodule.h"
#include "giomodule-priv.h"

View File

@ -24,7 +24,7 @@
#include "gioerror.h"
#include "gioenums.h"
#include "gasyncresult.h"
#include "gsimpleasyncresult.h"
#include "gtask.h"
#include "glibintl.h"
@ -406,10 +406,11 @@ acquire_or_release_async (GPermission *permission,
GAsyncReadyCallback callback,
gpointer user_data)
{
g_simple_async_report_error_in_idle (G_OBJECT (permission),
callback, user_data,
G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
"Can't acquire or release permission");
g_task_report_new_error (permission,
callback, user_data,
NULL,
G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
"Can't acquire or release permission");
}
static gboolean

View File

@ -29,7 +29,6 @@
#include "gcancellable.h"
#include "giomodule.h"
#include "giomodule-priv.h"
#include "gsimpleasyncresult.h"
/**
* SECTION:gproxyresolver

View File

@ -26,7 +26,6 @@
#include "gnetworkingprivate.h"
#include "gasyncresult.h"
#include "ginetaddress.h"
#include "gsimpleasyncresult.h"
#include "gtask.h"
#include "gsrvtarget.h"
#include "gthreadedresolver.h"

View File

@ -31,7 +31,6 @@
#include <glib/gstdio.h>
#include <glib/glib-unix.h>
#include "gioerror.h"
#include "gsimpleasyncresult.h"
#include "gunixinputstream.h"
#include "gcancellable.h"
#include "gasynchelper.h"

View File

@ -39,7 +39,6 @@
#include "gfile.h"
#include "gvolumemonitor.h"
#include "gthemedicon.h"
#include "gsimpleasyncresult.h"
#include "gioerror.h"
#include "glibintl.h"
/* for BUFSIZ */

View File

@ -33,7 +33,6 @@
#include "gioerror.h"
#include "gunixoutputstream.h"
#include "gcancellable.h"
#include "gsimpleasyncresult.h"
#include "gasynchelper.h"
#include "gfiledescriptorbased.h"
#include "glibintl.h"

View File

@ -27,7 +27,6 @@
#include <glib.h>
#include "gioerror.h"
#include "gsimpleasyncresult.h"
#include "gwin32inputstream.h"
#include "giowin32-priv.h"
#include "gcancellable.h"

View File

@ -35,7 +35,6 @@
#include "gmountprivate.h"
#include "gvolumemonitor.h"
#include "gthemedicon.h"
#include "gsimpleasyncresult.h"
#include "glibintl.h"

View File

@ -31,7 +31,6 @@
#include "gwin32outputstream.h"
#include "giowin32-priv.h"
#include "gcancellable.h"
#include "gsimpleasyncresult.h"
#include "gasynchelper.h"
#include "glibintl.h"