Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alexrp@xamarin.com>2015-01-30 17:45:43 +0300
committerAlex Rønne Petersen <alexrp@xamarin.com>2015-02-03 05:41:14 +0300
commit43a0088f3fb980b00506f9cd9cac65db69a929ca (patch)
tree1449a818d29973720b3c3a6f8b330c88dbfa4564 /mcs/class/Managed.Windows.Forms
parent1b41e15f91f188fd3dba4981cbd7609993f01e84 (diff)
Remove some leftover old 1.x, 2.x, 3.x profile ifdefs.
We no longer support these profiles so these code paths are dead.
Diffstat (limited to 'mcs/class/Managed.Windows.Forms')
-rw-r--r--mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LogGenerator.cs15
1 files changed, 1 insertions, 14 deletions
diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LogGenerator.cs b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LogGenerator.cs
index e176ee1340e..46061c938a2 100644
--- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LogGenerator.cs
+++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LogGenerator.cs
@@ -16,7 +16,6 @@ namespace Logger
{
Type type = null;
System.Text.StringBuilder code = new StringBuilder ();
- bool is_2_0 = false;
try {
//if (args.Length >= 1 && args [0].ToLower () == "all") {
@@ -39,20 +38,13 @@ namespace Logger
Assembly a = typeof(System.Windows.Forms.Control).Assembly;
type = a.GetType (args [0]);
- is_2_0 = a.FullName.IndexOf ("2.0") >= 0;
if (type == null)
throw new Exception (String.Format("Type '{0}' not found.", args[0]));
code.Append ("// Automatically generated for assembly: " + a.FullName + Environment.NewLine);
code.Append ("// To regenerate:" + Environment.NewLine);
- code.Append ("// " + (is_2_0 ? "gmcs" : "mcs") + " -r:System.Windows.Forms.dll LogGenerator.cs && mono LogGenerator.exe " + type.FullName + " " + args [1] + " " + (args.Length > 2 ? args [2] : " outfile.cs") + Environment.NewLine);
-
- if (is_2_0) {
- code.Append ("#if NET_2_0" + Environment.NewLine);
- } else {
- code.Append ("#if !NET_2_0" + Environment.NewLine);
- }
+ code.Append ("// mcs -r:System.Windows.Forms.dll LogGenerator.cs && mono LogGenerator.exe " + type.FullName + " " + args [1] + " " + (args.Length > 2 ? args [2] : " outfile.cs") + Environment.NewLine);
if (args[1] == "overrides" || args[1] == "overridesevents")
{
@@ -63,8 +55,6 @@ namespace Logger
code.Append (event_logger.GenerateLog (type));
}
- code.Append ("#endif" + Environment.NewLine);
-
if (args.Length > 2) {
using (System.IO.StreamWriter writer = new System.IO.StreamWriter(args[2], false))
{
@@ -99,9 +89,6 @@ using System.Drawing;
using System.Windows.Forms;
using System.ComponentModel;
using System.Runtime.Remoting;
-#if NET_2_0
-using System.Windows.Forms.Layout;
-#endif
using System.Text;
namespace MonoTests.System.Windows.Forms