From 77941acc0ee83fedcd8a1459ee9e618813c3779c Mon Sep 17 00:00:00 2001 From: Aragas Date: Sat, 3 Dec 2016 18:26:25 +0300 Subject: [PATCH] Removed unused ChannelClient and ChannelManager --- 2.5DHero/2.5DHero/2.5DHero.vbproj | 2 - .../Network/GameJolt/ChannelClient.vb | 67 ------------------- .../Network/GameJolt/ChannelManager.vb | 19 ------ 3 files changed, 88 deletions(-) delete mode 100644 2.5DHero/2.5DHero/Network/GameJolt/ChannelClient.vb delete mode 100644 2.5DHero/2.5DHero/Network/GameJolt/ChannelManager.vb diff --git a/2.5DHero/2.5DHero/2.5DHero.vbproj b/2.5DHero/2.5DHero/2.5DHero.vbproj index ba14ae1b6..e2e7072ad 100644 --- a/2.5DHero/2.5DHero/2.5DHero.vbproj +++ b/2.5DHero/2.5DHero/2.5DHero.vbproj @@ -183,8 +183,6 @@ - - diff --git a/2.5DHero/2.5DHero/Network/GameJolt/ChannelClient.vb b/2.5DHero/2.5DHero/Network/GameJolt/ChannelClient.vb deleted file mode 100644 index 8ef890b19..000000000 --- a/2.5DHero/2.5DHero/Network/GameJolt/ChannelClient.vb +++ /dev/null @@ -1,67 +0,0 @@ -Imports System.Linq -Imports System -Imports System.Collections.Generic -Imports System.Text -Imports System.Threading.Tasks -Imports System.IO -Imports System.Net -Imports System.ComponentModel -Imports System.Security.Cryptography - -Namespace GameJolt - - Public Class ChannelClient - - Dim Prev As Integer = 0 - Dim Port As String = "" - Dim Channel As String = "" - Dim SID As String = "" - - Dim t As Threading.Thread - - 'Public Sub New(ByVal Port As String, ByVal Channel As String) - - - ' Using Client = New WebClient() - ' Client.Credentials = New NetworkCredential("username", "password") - ' AddHandler Client.OpenReadCompleted, Function(sender, e) As Object - ' Using reader As StreamReader = New StreamReader(e.result) - ' While True - ' MsgBox(reader.ReadLine()) - ' End While - ' End Using - ' Return Nothing - ' End Function - ' Client.OpenReadAsync(New Uri("http://api-01.gamejolt.com:7001/subscribe?game_id=" & ChannelManager.GameID & "&channel=" & Channel, System.UriKind.Absolute)) - ' End Using - - ' System.Threading.Thread.Sleep(10000) - 'End Sub - - Public Sub New(ByVal Port As String, ByVal Channel As String) - Me.Port = Port - Me.Channel = Channel - - Dim request As HttpWebRequest = CType(WebRequest.Create(New Uri("http://api-01.gamejolt.com:7001/subscribe?game_id=" & ChannelManager.GameID & "&channel=" & Channel, System.UriKind.Absolute)), HttpWebRequest) - request.Method = "POST" - request.BeginGetRequestStream(AddressOf GetResponse, request) - request.KeepAlive = True - - System.Threading.Thread.Sleep(10000) - End Sub - - Private Sub GetResponse(ByVal result As IAsyncResult) - Logger.Debug("LOL") - If result.IsCompleted Then - Dim request As HttpWebRequest = CType(result.AsyncState, HttpWebRequest) - - Dim data As String = New StreamReader(request.EndGetResponse(result).GetResponseStream()).ReadToEnd() - - 'random data management - MsgBox(data) - End If - End Sub - - End Class - -End Namespace \ No newline at end of file diff --git a/2.5DHero/2.5DHero/Network/GameJolt/ChannelManager.vb b/2.5DHero/2.5DHero/Network/GameJolt/ChannelManager.vb deleted file mode 100644 index f23aab505..000000000 --- a/2.5DHero/2.5DHero/Network/GameJolt/ChannelManager.vb +++ /dev/null @@ -1,19 +0,0 @@ -Namespace GameJolt - - Public Class ChannelManager - - Public Shared GameID As String = "" ' CLASSIFIED - Public Shared host As String = "http://api-01.gamejolt.com" - Public Shared totalResponses As Integer = 0 - - Public Sub New() - - End Sub - - Public Sub Update() - - End Sub - - End Class - -End Namespace \ No newline at end of file