From a09f30709c0df8ead90aa8fca438c3515dd9dc53 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 28 Sep 2016 15:01:52 +0100 Subject: [PATCH] Cleaning Test Code --- Facepunch.Steamworks/Client.ServerList.cs | 36 ----------------------- 1 file changed, 36 deletions(-) diff --git a/Facepunch.Steamworks/Client.ServerList.cs b/Facepunch.Steamworks/Client.ServerList.cs index 99c298d..6f81f55 100644 --- a/Facepunch.Steamworks/Client.ServerList.cs +++ b/Facepunch.Steamworks/Client.ServerList.cs @@ -23,8 +23,6 @@ namespace Facepunch.Steamworks } } - - public partial class ServerList { @@ -87,40 +85,6 @@ namespace Facepunch.Steamworks public string value; } - public unsafe Request Test() - { - var filters = new Dictionary(); - filters.Add("gamedir", "rust" ); - - var array = filters.ToArray(); - - //fixed ( void* a = array ) - { - - var pairs = filters.Select( x => new MatchMakingKeyValuePair_t() - { - m_szKey = x.Key, - m_szValue = x.Value - }).ToArray(); - - - var request = new Request( client ); - - GCHandle h = GCHandle.Alloc( pairs, GCHandleType.Pinned ); - var a = h.AddrOfPinnedObject(); - - // request.Id = client.native.servers.RequestInternetServerList( client.AppId, h.AddrOfPinnedObject(), pairs.Length, IntPtr.Zero ); - - h.Free(); - - return request; - } - } - - - - - public Request Internet( Filter filter ) { filter.Start();