diff options
Diffstat (limited to 'vala-xmpp/src/core/stanza_writer.vala')
-rw-r--r-- | vala-xmpp/src/core/stanza_writer.vala | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vala-xmpp/src/core/stanza_writer.vala b/vala-xmpp/src/core/stanza_writer.vala deleted file mode 100644 index 26524d7b..00000000 --- a/vala-xmpp/src/core/stanza_writer.vala +++ /dev/null @@ -1,27 +0,0 @@ -namespace Xmpp.Core { -public class StanzaWriter { - private OutputStream output; - - public StanzaWriter.for_stream(OutputStream output) { - this.output = output; - } - - public void write_node(StanzaNode node) throws XmlError { - try { - lock(output) { - output.write_all(node.to_xml().data, null); - } - } catch (GLib.IOError e) { - throw new XmlError.IO_ERROR(@"IOError in GLib: $(e.message)"); - } - } - - public async void write(string s) throws XmlError { - try { - output.write_all(s.data, null); - } catch (GLib.IOError e) { - throw new XmlError.IO_ERROR(@"IOError in GLib: $(e.message)"); - } - } -} -}
\ No newline at end of file |