From b86d5c13b0b475ac9fc1816b6c27a4d7fda84c9f Mon Sep 17 00:00:00 2001 From: Alex Earl Date: Mon, 1 Jul 2013 10:01:38 -0700 Subject: [PATCH] Removing unused code --- Main.cs | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/Main.cs b/Main.cs index 8b431bc..8a5aa0a 100644 --- a/Main.cs +++ b/Main.cs @@ -482,7 +482,6 @@ namespace winsw if (args[0] == "install") { if (args.Count > 1 && args[1] == "/p") { - bool cancel = false; // we expected username/password on stdin Console.Write("Username: "); string username = Console.ReadLine (); @@ -502,19 +501,17 @@ namespace winsw } } - if (!cancel) { - svc.Create ( - d.Id, - d.Caption, - "\"" + ServiceDescriptor.ExecutablePath + "\"", - WMI.ServiceType.OwnProcess, - ErrorControl.UserNotified, - StartMode.Automatic, - d.Interactive, - username, - password.ToString (), - d.ServiceDependencies); - } + svc.Create ( + d.Id, + d.Caption, + "\"" + ServiceDescriptor.ExecutablePath + "\"", + WMI.ServiceType.OwnProcess, + ErrorControl.UserNotified, + StartMode.Automatic, + d.Interactive, + username, + password.ToString (), + d.ServiceDependencies); } else { svc.Create ( d.Id,