From 6f255dde2de7808585d92e58effb2377cd920f75 Mon Sep 17 00:00:00 2001 From: Iwan Timmer Date: Tue, 7 Jan 2014 21:10:24 +0100 Subject: [PATCH] Remove unneeded function and imports from Limelight --- src/com/limelight/Limelight.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/com/limelight/Limelight.java b/src/com/limelight/Limelight.java index b590099..c6df23b 100644 --- a/src/com/limelight/Limelight.java +++ b/src/com/limelight/Limelight.java @@ -1,21 +1,16 @@ package com.limelight; -import java.io.File; import java.io.IOException; -import java.io.PrintStream; import com.limelight.binding.LibraryHelper; import com.limelight.binding.PlatformBinding; import com.limelight.input.gamepad.Gamepad; import com.limelight.input.gamepad.GamepadListener; -import com.limelight.input.gamepad.NativeGamepad; import com.limelight.nvstream.NvConnection; import com.limelight.nvstream.NvConnectionListener; import com.limelight.nvstream.StreamConfiguration; import com.limelight.nvstream.av.video.VideoDecoderRenderer; import com.limelight.nvstream.http.NvHTTP; -import com.limelight.settings.PreferencesManager; -import com.limelight.settings.PreferencesManager.Preferences; import com.limelight.settings.PreferencesManager.Preferences.Resolution; import java.net.InetAddress; import java.net.SocketException; @@ -118,19 +113,6 @@ public class Limelight implements NvConnectionListener { } } - /** - * Creates a new instance and starts the stream. - * @param host the host pc to connect to. Can be a hostname or IP address. - */ - public static void createInstance(String host) { - Limelight limelight = new Limelight(host); - - Preferences prefs = PreferencesManager.getPreferences(); - StreamConfiguration streamConfig = createConfiguration(prefs.getResolution()); - - limelight.startUp(streamConfig, prefs.getFullscreen()); - } - /** * The entry point for the application.
* Does some initializations and then creates the main frame.