diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-02-19 09:41:06 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-02-19 09:41:06 +0000 |
commit | b64547deb808046b8bac687242ab777c0bf0d73a (patch) | |
tree | 3c7b9cb07e93beabc2f2efbe879ee279a525c449 /client/gdaemonfileinputstream.c | |
parent | 31a620e564b9edb751c19c71193ca73123faddb4 (diff) | |
download | gvfs-b64547deb808046b8bac687242ab777c0bf0d73a.tar.gz |
Code cleanup from Kjartan: Removes unused code/variables. Uses right
2008-02-19 Alexander Larsson <alexl@redhat.com>
* lots of *.c files:
Code cleanup from Kjartan:
Removes unused code/variables.
Uses right printf types
Uses non-deprecated dbus calls.
Removes spurious ; and ,
deleted extra checks for NULL for g_free
svn path=/trunk/; revision=1302
Diffstat (limited to 'client/gdaemonfileinputstream.c')
-rw-r--r-- | client/gdaemonfileinputstream.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/client/gdaemonfileinputstream.c b/client/gdaemonfileinputstream.c index 18ce96b3..b89b76ce 100644 --- a/client/gdaemonfileinputstream.c +++ b/client/gdaemonfileinputstream.c @@ -743,10 +743,11 @@ g_daemon_file_input_stream_skip (GInputStream *stream, GCancellable *cancellable, GError **error) { +#if 0 GDaemonFileInputStream *file; file = G_DAEMON_FILE_INPUT_STREAM (stream); - +#endif /* TODO: implement skip */ g_assert_not_reached (); @@ -1237,10 +1238,6 @@ g_daemon_file_input_stream_query_info (GFileInputStream *stream, GCancellable *cancellable, GError **error) { - GDaemonFileInputStream *file; - - file = G_DAEMON_FILE_INPUT_STREAM (stream); - g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "%s", _("The query info operation is not supported")); return NULL; @@ -1502,7 +1499,6 @@ g_daemon_file_input_stream_read_async (GInputStream *stream, gpointer user_data) { GDaemonFileInputStream *file; - AsyncIterator *iterator; ReadOperation *op; file = G_DAEMON_FILE_INPUT_STREAM (stream); @@ -1516,8 +1512,6 @@ g_daemon_file_input_stream_read_async (GInputStream *stream, op->buffer = buffer; op->buffer_size = count; - iterator = g_new0 (AsyncIterator, 1); - run_async_state_machine (file, (state_machine_iterator)iterate_read_state_machine, op, @@ -1628,7 +1622,6 @@ g_daemon_file_input_stream_close_async (GInputStream *stream, gpointer data) { GDaemonFileInputStream *file; - AsyncIterator *iterator; CloseOperation *op; file = G_DAEMON_FILE_INPUT_STREAM (stream); @@ -1636,8 +1629,6 @@ g_daemon_file_input_stream_close_async (GInputStream *stream, op = g_new0 (CloseOperation, 1); op->state = CLOSE_STATE_INIT; - iterator = g_new0 (AsyncIterator, 1); - run_async_state_machine (file, (state_machine_iterator)iterate_close_state_machine, op, io_priority, |