diff options
author | fiaxh <git@mx.ax.lt> | 2017-06-16 14:29:02 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-06-17 16:13:23 +0200 |
commit | 26973c89e391de673b6ac1db024a3098b1191393 (patch) | |
tree | eb17d5006c1e70e7e88b71700455c40081b4af47 /xmpp-vala/src/module/util.vala | |
parent | 7bbbb738fdb233f4ad91ffdd7d9247b28849d715 (diff) | |
download | dino-26973c89e391de673b6ac1db024a3098b1191393.tar.gz dino-26973c89e391de673b6ac1db024a3098b1191393.zip |
Set jid handle in ContactDetails, use LabelHybrids more, remove edit from StartConversation
Diffstat (limited to 'xmpp-vala/src/module/util.vala')
-rw-r--r-- | xmpp-vala/src/module/util.vala | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/xmpp-vala/src/module/util.vala b/xmpp-vala/src/module/util.vala index a0621225..365170b0 100644 --- a/xmpp-vala/src/module/util.vala +++ b/xmpp-vala/src/module/util.vala @@ -20,44 +20,4 @@ namespace Xmpp { uint32 b5_2 = Random.next_int(); return "%08x-%04x-%04x-%04x-%04x%08x".printf(b1, b2, b3, b4, b5_1, b5_2); } - - public class Tuple<A,B> : Object { - public A a { get; private set; } - public B b { get; private set; } - - public Tuple(A a, B b) { - this.a = a; - this.b = b; - } - - public static Tuple<A,B> create<A,B>(A a, B b) { - return new Tuple<A,B>(a,b); - } - } - - public class Triple<A,B,C> : Tuple<A,B> { - public C c { get; private set; } - - public Triple(A a, B b, C c) { - base(a, b); - this.c = c; - } - - public static new Triple<A,B,C> create<A,B,C>(A a, B b, C c) { - return new Triple<A,B,C>(a, b, c); - } - } - - public class Quadruple<A,B,C,D> : Triple<A,B,C> { - public D d { get; private set; } - - public Quadruple(A a, B b, C c, D d) { - base (a, b, c); - this.d = d; - } - - public static new Quadruple<A,B,C,D> create<A,B,C,D>(A a, B b, C c, D d) { - return new Quadruple<A,B,C,D>(a, b, c, d); - } - } -}
\ No newline at end of file +} |