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:
authorEgor Bogatov <egorbo@gmail.com>2018-06-25 12:15:20 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2018-06-25 12:15:20 +0300
commit51935465ae5935355206ceb49582e0352cc6229a (patch)
treecea8b67d252b4f29c5b501d58ada835f590f1d0b /mcs/class/System.Configuration
parent540f077c58cdd7883c6b0738a6b350f4ff62ca75 (diff)
Delete unused files in BCL (#9288)
The following files in `mcs/class/*.cs` are not used anywhere (*.csproj/*.source).
Diffstat (limited to 'mcs/class/System.Configuration')
-rw-r--r--mcs/class/System.Configuration/System.Configuration/IntegerConfigurationProperty.cs66
-rw-r--r--mcs/class/System.Configuration/System.Configuration/NonEmptyStringConfigurationProperty.cs69
-rw-r--r--mcs/class/System.Configuration/System.Configuration/NonEmptyStringFlags.cs37
-rw-r--r--mcs/class/System.Configuration/System.Configuration/PathLevel.cs38
-rw-r--r--mcs/class/System.Configuration/System.Configuration/TimeSpanConfigurationProperty.cs96
-rw-r--r--mcs/class/System.Configuration/System.Configuration/TimeSpanPropertyFlags.cs40
-rw-r--r--mcs/class/System.Configuration/System.Configuration/TimeSpanSerializedFormat.cs38
7 files changed, 0 insertions, 384 deletions
diff --git a/mcs/class/System.Configuration/System.Configuration/IntegerConfigurationProperty.cs b/mcs/class/System.Configuration/System.Configuration/IntegerConfigurationProperty.cs
deleted file mode 100644
index ee1503d8850..00000000000
--- a/mcs/class/System.Configuration/System.Configuration/IntegerConfigurationProperty.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// System.Configuration.ConfigurationProperty.cs
-//
-// Authors:
-// Lluis Sanchez Gual (lluis@novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-
-using System;
-using System.ComponentModel;
-
-namespace System.Configuration
-{
- public class IntegerConfigurationProperty : ConfigurationProperty
- {
- int min;
- int max;
-
- public IntegerConfigurationProperty (string name, int defaultValue, ConfigurationPropertyOptions flags)
- : base (name, typeof(int), defaultValue, flags)
- {
- min = int.MinValue;
- max = int.MaxValue;
- }
-
- public IntegerConfigurationProperty (string name, int defaultValue, int minimumValue, int maximumValue, ConfigurationPropertyOptions flags)
- : base (name, typeof(int), defaultValue, flags)
- {
- min = minimumValue;
- max = maximumValue;
- }
-
- protected internal override object ConvertFromString (string value)
- {
- return int.Parse (value);
- }
-
- protected internal override string ConvertToString (object value)
- {
- int val = (int)value;
- if (val < min || val > max)
- throw new ConfigurationException ("The property '" + Name + "' must have a value between '" + min + "' and '" + max + "'");
- return value.ToString ();
- }
- }
-}
diff --git a/mcs/class/System.Configuration/System.Configuration/NonEmptyStringConfigurationProperty.cs b/mcs/class/System.Configuration/System.Configuration/NonEmptyStringConfigurationProperty.cs
deleted file mode 100644
index 2554f0f2cf5..00000000000
--- a/mcs/class/System.Configuration/System.Configuration/NonEmptyStringConfigurationProperty.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//
-// System.Configuration.NonEmptyStringConfigurationProperty.cs
-//
-// Authors:
-// Lluis Sanchez Gual (lluis@novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-
-using System;
-
-namespace System.Configuration
-{
- public sealed class NonEmptyStringConfigurationProperty : ConfigurationProperty
- {
- NonEmptyStringFlags stringFlags;
-
- public NonEmptyStringConfigurationProperty (string name, string defaultValue, ConfigurationPropertyOptions flags)
- : base (name, typeof(string), defaultValue, flags)
- {
- }
-
- public NonEmptyStringConfigurationProperty (string name, string defaultValue, ConfigurationPropertyOptions flags, NonEmptyStringFlags nonEmptyStringFlags)
- : base (name, typeof(string), defaultValue, flags)
- {
- stringFlags = nonEmptyStringFlags;
- }
-
- protected internal override object ConvertFromString (string value)
- {
- return Check (value);
- }
-
- protected internal override string ConvertToString (object value)
- {
- return Check (value as string);
- }
-
- string Check (string s)
- {
- if (s == string.Empty || s == null)
- throw new ConfigurationException ("The property '" + Name + "' can't be empty");
-
- if (stringFlags == NonEmptyStringFlags.TrimWhitespace)
- return s.Trim ();
- else
- return s;
- }
- }
-}
diff --git a/mcs/class/System.Configuration/System.Configuration/NonEmptyStringFlags.cs b/mcs/class/System.Configuration/System.Configuration/NonEmptyStringFlags.cs
deleted file mode 100644
index 8d094a3da94..00000000000
--- a/mcs/class/System.Configuration/System.Configuration/NonEmptyStringFlags.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// System.Configuration.NonEmptyStringFlags.cs
-//
-// Authors:
-// Lluis Sanchez Gual (lluis@novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-
-
-namespace System.Configuration
-{
- public enum NonEmptyStringFlags
- {
- None,
- TrimWhitespace
- }
-}
diff --git a/mcs/class/System.Configuration/System.Configuration/PathLevel.cs b/mcs/class/System.Configuration/System.Configuration/PathLevel.cs
deleted file mode 100644
index 99e13b880c9..00000000000
--- a/mcs/class/System.Configuration/System.Configuration/PathLevel.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// System.Configuration.PathLevel.cs
-//
-// Authors:
-// Duncan Mak (duncan@ximian.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-using System;
-
-namespace System.Configuration {
-
- [Serializable]
- public enum PathLevel {
- App = 0,
- MachineToApp = 1,
- BelowApp = -1
- }
-}
diff --git a/mcs/class/System.Configuration/System.Configuration/TimeSpanConfigurationProperty.cs b/mcs/class/System.Configuration/System.Configuration/TimeSpanConfigurationProperty.cs
deleted file mode 100644
index b506ab2e866..00000000000
--- a/mcs/class/System.Configuration/System.Configuration/TimeSpanConfigurationProperty.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-//
-// System.Configuration.TimeSpanConfigurationProperty.cs
-//
-// Authors:
-// Lluis Sanchez Gual (lluis@novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-
-using System;
-using System.ComponentModel;
-
-namespace System.Configuration
-{
- public sealed class TimeSpanConfigurationProperty : ConfigurationProperty
- {
- TimeSpanSerializedFormat _format;
- TimeSpanPropertyFlags _tsflags;
-
- public TimeSpanConfigurationProperty (string name, TimeSpan defaultValue, ConfigurationPropertyOptions flags)
- : base (name, typeof(TimeSpan), defaultValue, flags)
- {
- }
-
- public TimeSpanConfigurationProperty (string name, TimeSpan defaultValue, TimeSpanSerializedFormat format, ConfigurationPropertyOptions flags)
- : base (name, typeof(TimeSpan), defaultValue, flags)
- {
- _format = format;
- }
-
- public TimeSpanConfigurationProperty (string name, TimeSpan defaultValue, TimeSpanSerializedFormat format, TimeSpanPropertyFlags tsflags, ConfigurationPropertyOptions flags)
- : base (name, typeof(TimeSpan), defaultValue, flags)
- {
- _format = format;
- _tsflags = tsflags;
- }
-
- protected internal override object ConvertFromString (string value)
- {
- TimeSpan span;
- switch (_format) {
- case TimeSpanSerializedFormat.Seconds:
- span = TimeSpan.FromSeconds (int.Parse (value));
- break;
- case TimeSpanSerializedFormat.Minutes:
- span = TimeSpan.FromMinutes (int.Parse (value));
- break;
- default:
- span = TimeSpan.Parse (value);
- break;
- }
- Check (span);
- return span;
- }
-
- protected internal override string ConvertToString (object value)
- {
- TimeSpan span = (TimeSpan)value;
- Check (span);
- switch (_format) {
- case TimeSpanSerializedFormat.Seconds: return span.TotalSeconds.ToString ();
- case TimeSpanSerializedFormat.Minutes: return span.TotalMinutes.ToString ();
- default: return value.ToString ();
- }
- }
-
- void Check (TimeSpan span)
- {
- if (span.Ticks < 0 && (_tsflags & TimeSpanPropertyFlags.AllowNegative) == 0)
- throw new ConfigurationException ("TimeSpan value can't be negative");
- else if (span == TimeSpan.Zero && (_tsflags & TimeSpanPropertyFlags.ProhibitZero) != 0)
- throw new ConfigurationException ("TimeSpan value can't be zero");
- else if (span == TimeSpan.MaxValue && (_tsflags & TimeSpanPropertyFlags.AllowInfinite) == 0)
- throw new ConfigurationException ("TimeSpan value can't be infinite");
- }
- }
-}
diff --git a/mcs/class/System.Configuration/System.Configuration/TimeSpanPropertyFlags.cs b/mcs/class/System.Configuration/System.Configuration/TimeSpanPropertyFlags.cs
deleted file mode 100644
index d10823bf359..00000000000
--- a/mcs/class/System.Configuration/System.Configuration/TimeSpanPropertyFlags.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//
-// System.Configuration.TimeSpanPropertyFlags.cs
-//
-// Authors:
-// Lluis Sanchez Gual (lluis@novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-
-
-namespace System.Configuration
-{
- [Flags]
- public enum TimeSpanPropertyFlags
- {
- None = 0,
- AllowInfinite = 1,
- AllowNegative = 2,
- ProhibitZero = 4
- }
-}
diff --git a/mcs/class/System.Configuration/System.Configuration/TimeSpanSerializedFormat.cs b/mcs/class/System.Configuration/System.Configuration/TimeSpanSerializedFormat.cs
deleted file mode 100644
index 633a7431cd9..00000000000
--- a/mcs/class/System.Configuration/System.Configuration/TimeSpanSerializedFormat.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// System.Configuration.TimeSpanSerializedFormat.cs
-//
-// Authors:
-// Lluis Sanchez Gual (lluis@novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-
-
-namespace System.Configuration
-{
- public enum TimeSpanSerializedFormat
- {
- Seconds,
- Minutes,
- HHMMSS
- }
-}