Skip to content

Commit f92d1ae

Browse files
committed
Remove unused code
1 parent 6550302 commit f92d1ae

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

GitAutoUpdateGUI/FormMain.cs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,21 +1648,10 @@ private void buttonCreateBackupScript_Click(object sender, EventArgs e)
16481648
//TODO
16491649
// algo : chercher tous les solutions VS gitted and create a bat script to git clone them
16501650
// ideally for every Visual Studio */projects directory get gitted VS solutions
1651-
if (listViewVSProjects.Items.Count == 0)
1652-
{
1653-
DisplayMessageOk(Translate("The list doesn't have any Visual Studio project to update") +
1654-
Punctuation.Period + Punctuation.CrLf + Translate("Enter a correct path and search project again"),
1655-
Translate("List empty"), MessageBoxButtons.OK);
1656-
Logger.Add(textBoxLog, Translate("The list doesn't have any Visual Studio project to update"));
1657-
return;
1658-
}
16591651

1652+
Logger.Add(textBoxLog, Translate("Creating the GitCloneBackup.bat script"));
16601653
Logger.Add(textBoxLog, Translate("Listing Visual Studio solutions with Git"));
1661-
if (checkBoxOnlyGenerateScriptFile.Checked)
1662-
{
1663-
Logger.Add(textBoxLog, Translate("Creating the GitCloneBackup.bat script"));
1664-
}
1665-
1654+
16661655
string backupScript = Path.Combine(textBoxVSProjectPath.Text, "GitCloneBackup.bat");
16671656
backupScript = GenerateUniqueFileName(backupScript);
16681657
CreateNewFile(backupScript);

0 commit comments

Comments
 (0)