From 9e6aed2d1701fad17ded1bb88364969f5ccf29aa Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 20 Nov 2010 15:08:38 +0000 Subject: [PATCH] [intro] Remove broken url syntax check --- SparkleShare/SparkleIntro.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/SparkleShare/SparkleIntro.cs b/SparkleShare/SparkleIntro.cs index b31feb2e..bac076ad 100644 --- a/SparkleShare/SparkleIntro.cs +++ b/SparkleShare/SparkleIntro.cs @@ -668,10 +668,11 @@ namespace SparkleShare { return; bool IsFolder = !FolderEntry.Text.Trim ().Equals (""); + bool IsServer = !ServerEntry.Text.Trim ().Equals (""); if (ServerEntry.Sensitive == true) { - if (IsGitUrl (ServerEntry.Text) && IsFolder) + if (IsServer && IsFolder) SyncButton.Sensitive = true; } else if (IsFolder) { @@ -683,8 +684,6 @@ namespace SparkleShare { } - - // Checks to see if an email address is valid private bool IsValidEmail (string email) { @@ -694,15 +693,6 @@ namespace SparkleShare { } - - // Checks if a url is a valid git url TODO: broken - private static bool IsGitUrl (string url) - { - - return true; - - } - } }