summaryrefslogtreecommitdiff
path: root/gio/src/datainputstream.ccg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2012-09-15 22:07:46 +0200
committerMurray Cumming <murrayc@murrayc.com>2012-09-15 22:07:46 +0200
commit3990fbe43137ab174503140d922d5aed19432093 (patch)
tree7ded8225a3443edeb14c1fd7d890ff99726a594c /gio/src/datainputstream.ccg
parent383bd19cb932099871805ea0abe557e5ed4abae2 (diff)
downloadglibmm-3990fbe43137ab174503140d922d5aed19432093.tar.gz
Simplified lots of code by using the {?} _WRAP_METHOD() syntax.
* gio/src/application.[hg|ccg]: * gio/src/bufferedinputstream.[hg|ccg]: * gio/src/datainputstream.[hg|ccg]: * gio/src/dataoutputstream.[hg|ccg]: * gio/src/dbusconnection.[hg|ccg]: * gio/src/fileenumerator.[hg|ccg]: * gio/src/initable.[hg|ccg]: * gio/src/inputstream.[hg|ccg]: * gio/src/iostream.[hg|ccg]: * gio/src/outputstream.[hg|ccg]: * gio/src/resolver.[hg|ccg]: * gio/src/seekable.[hg|ccg]: * gio/src/socket.[hg|ccg]: * gio/src/socketaddressenumerator.[hg|ccg]: * gio/src/socketclient.[hg|ccg]: This relatively new gmmproc syntax lets us avoid the manual implementations and declarations just to have overloads without the Cancellable parameters. * gio/src/unixconnection.hg: This had no method overloads without Cancellable parameters but now it does.
Diffstat (limited to 'gio/src/datainputstream.ccg')
-rw-r--r--gio/src/datainputstream.ccg70
1 files changed, 0 insertions, 70 deletions
diff --git a/gio/src/datainputstream.ccg b/gio/src/datainputstream.ccg
index f71c8f71..485c7b1e 100644
--- a/gio/src/datainputstream.ccg
+++ b/gio/src/datainputstream.ccg
@@ -24,76 +24,6 @@
namespace Gio
{
-guchar DataInputStream::read_byte()
-{
- GError* gerror = 0;
- const guchar retvalue = g_data_input_stream_read_byte(gobj(), 0, &(gerror));
- if(gerror)
- ::Glib::Error::throw_exception(gerror);
-
- return retvalue;
-}
-
-gint16 DataInputStream::read_int16()
-{
- GError* gerror = 0;
- const gint16 retvalue = g_data_input_stream_read_int16(gobj(), 0, &(gerror));
- if(gerror)
- ::Glib::Error::throw_exception(gerror);
-
- return retvalue;
-}
-
-guint16 DataInputStream::read_uint16()
-{
- GError* gerror = 0;
- const guint16 retvalue = g_data_input_stream_read_uint16(gobj(), 0, &(gerror));
- if(gerror)
- ::Glib::Error::throw_exception(gerror);
-
- return retvalue;
-}
-
-gint32 DataInputStream::read_int32()
-{
- GError* gerror = 0;
- const gint32 retvalue = g_data_input_stream_read_int32(gobj(), 0, &(gerror));
- if(gerror)
- ::Glib::Error::throw_exception(gerror);
-
- return retvalue;
-}
-
-guint32 DataInputStream::read_uint32()
-{
- GError* gerror = 0;
- const guint32 retvalue = g_data_input_stream_read_uint32(gobj(), 0, &(gerror));
- if(gerror)
- ::Glib::Error::throw_exception(gerror);
-
- return retvalue;
-}
-
-gint64 DataInputStream::read_int64()
-{
- GError* gerror = 0;
- const gint64 retvalue = g_data_input_stream_read_int64(gobj(), 0, &(gerror));
- if(gerror)
- ::Glib::Error::throw_exception(gerror);
-
- return retvalue;
-}
-
-guint64 DataInputStream::read_uint64()
-{
- GError* gerror = 0;
- const guint64 retvalue = g_data_input_stream_read_uint64(gobj(), 0, &(gerror));
- if(gerror)
- ::Glib::Error::throw_exception(gerror);
-
- return retvalue;
-}
-
bool DataInputStream::read_line(std::string& line, const Glib::RefPtr<Cancellable>& cancellable)
{
GError* gerror = 0;