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.Drawing
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.Drawing')
-rw-r--r--mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfiguration.cs76
-rw-r--r--mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfigurationCollection.cs93
-rw-r--r--mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfigurationHandler.cs140
3 files changed, 0 insertions, 309 deletions
diff --git a/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfiguration.cs b/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfiguration.cs
deleted file mode 100644
index a62c270e935..00000000000
--- a/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfiguration.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-using System;
-using System.Collections;
-
-namespace Mainsoft.Drawing.Configuration
-{
- /// <summary>
- /// Summary description for ResolutionConfiguration.
- /// </summary>
- public class ResolutionConfiguration : IComparable
- {
- string _imageFormat = "";
-
- string _xResPath = "";
- string _yResPath = "";
- string _unitsTypePath = "";
-
- string _xResDefault = "";
- string _yResDefault = "";
- string _unitsTypeDefault = "";
-
- Hashtable _unitScale;
-
- public ResolutionConfiguration(
- string imageFormat,
- string xresPath, string yresPath, string unitsTypePath,
- string xresDefault, string yresDefault, string unitsTypeDefault,
- Hashtable unitScale)
- {
- _imageFormat = imageFormat;
-
- _xResPath = xresPath;
- _yResPath = yresPath;
- _unitsTypePath = unitsTypePath;
-
- _xResDefault = xresDefault;
- _yResDefault = yresDefault;
- _unitsTypeDefault = unitsTypeDefault;
-
- _unitScale = unitScale;
- }
-
- public string XResPath {
- get { return _xResPath; }
- }
- public string XResDefault {
- get { return _xResDefault; }
- }
- public string YResPath {
- get { return _yResPath; }
- }
- public string YResDefault {
- get { return _yResDefault; }
- }
- public string UnitsTypePath {
- get { return _unitsTypePath; }
- }
- public string UnitsTypeDefault {
- get { return _unitsTypeDefault; }
- }
- public string ImageFormat {
- get { return _imageFormat; }
- }
- public Hashtable UnitsScale {
- get { return _unitScale; }
- }
-
- #region IComparable Members
-
- public int CompareTo(object obj) {
- return _imageFormat.CompareTo(((ResolutionConfiguration)obj).ImageFormat);
- }
-
- #endregion
-
- }
-}
diff --git a/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfigurationCollection.cs b/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfigurationCollection.cs
deleted file mode 100644
index 9dcbe40b8d3..00000000000
--- a/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfigurationCollection.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-using System;
-using System.Collections;
-
-namespace Mainsoft.Drawing.Configuration {
- /// <summary>
- /// Summary description for MetadataConfigurationCollection.
- /// </summary>
- public class ResolutionConfigurationCollection : IEnumerable, ICollection {
-
- ArrayList _resolutionConfigurations;
-
- #region ctors
-
- internal ResolutionConfigurationCollection(ResolutionConfigurationCollection parent) {
- _resolutionConfigurations = new ArrayList();
-
- if (parent != null)
- _resolutionConfigurations.AddRange(parent);
- }
-
- #endregion
-
- #region methods
-
- internal void Add(ResolutionConfiguration value) {
- _resolutionConfigurations.Add(value);
- }
-
- internal void Sort() {
- _resolutionConfigurations.Sort();
- }
-
- #endregion
-
- #region props
-
- public ResolutionConfiguration this[int index] {
- get {
- return (ResolutionConfiguration)_resolutionConfigurations[index];
- }
- }
-
- public ResolutionConfiguration this[string ImageFormat] {
- get {
- for (int i=0; i < _resolutionConfigurations.Count; i++)
- if ( ((ResolutionConfiguration)_resolutionConfigurations[i]).ImageFormat == ImageFormat )
- return (ResolutionConfiguration)_resolutionConfigurations[i];
- return null;
- }
- }
-
- #endregion
-
- #region IEnumerable Members
-
- public IEnumerator GetEnumerator() {
- // TODO: Add ResolutionConfigurationCollection.GetEnumerator implementation
- return _resolutionConfigurations.GetEnumerator();
- }
-
- #endregion
-
- #region ICollection Members
-
- public bool IsSynchronized {
- get {
- // TODO: Add ResolutionConfigurationCollection.IsSynchronized getter implementation
- return _resolutionConfigurations.IsSynchronized;
- }
- }
-
- public int Count {
- get {
- // TODO: Add ResolutionConfigurationCollection.Count getter implementation
- return _resolutionConfigurations.Count;
- }
- }
-
- public void CopyTo(Array array, int index) {
- // TODO: Add ResolutionConfigurationCollection.CopyTo implementation
- _resolutionConfigurations.CopyTo(array, index);
- }
-
- public object SyncRoot {
- get {
- // TODO: Add ResolutionConfigurationCollection.SyncRoot getter implementation
- return _resolutionConfigurations.SyncRoot;
- }
- }
-
- #endregion
- }
-}
diff --git a/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfigurationHandler.cs b/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfigurationHandler.cs
deleted file mode 100644
index 18698ffcb85..00000000000
--- a/mcs/class/System.Drawing/Mainsoft.Drawing.Configuration.jvm/ResolutionConfigurationHandler.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-using System;
-using System.Collections;
-using System.Configuration;
-using System.Xml;
-
-
-namespace Mainsoft.Drawing.Configuration
-{
- /// <summary>
- /// Summary description for MetadataConfigurationHandler.
- /// </summary>
- public class ResolutionConfigurationHandler : IConfigurationSectionHandler
- {
- public ResolutionConfigurationHandler()
- {
- //
- // TODO: Add constructor logic here
- //
- }
-
- public virtual object Create (object parent, object configContext, XmlNode section) {
-
- if (section.Attributes != null && section.Attributes.Count != 0)
- HandlersUtil.ThrowException ("Unrecognized attribute", section);
-
- ResolutionConfigurationCollection col =
- new ResolutionConfigurationCollection(parent as ResolutionConfigurationCollection);
-
- XmlNodeList imageFormats = section.ChildNodes;
- foreach (XmlNode child in imageFormats) {
-
- XmlNodeType ntype = child.NodeType;
- if (ntype == XmlNodeType.Whitespace || ntype == XmlNodeType.Comment)
- continue;
-
- if (ntype != XmlNodeType.Element)
- HandlersUtil.ThrowException ("Only elements allowed", child);
-
- string imageFormatName = HandlersUtil.ExtractAttributeValue ("name", child, false, false);
-
- string xResPath = HandlersUtil.ExtractNodeValue(child["xresolution"]);
- string yResPath = HandlersUtil.ExtractNodeValue(child["yresolution"]);
- string unitsType = HandlersUtil.ExtractNodeValue(child["unitstype"], false, true);
-
- string xResDefault = HandlersUtil.ExtractAttributeValue ("default", child["xresolution"]);
- string yResDefault = HandlersUtil.ExtractAttributeValue ("default", child["yresolution"]);
- string unitsTypeDefault = HandlersUtil.ExtractAttributeValue ("default", child["unitstype"], true);
-
- Hashtable unitScale = new Hashtable(3);
-
- XmlNodeList unitScaleNodes = child.SelectNodes("unitscale");
- foreach (XmlNode unitScaleNode in unitScaleNodes) {
- unitScale.Add(
- HandlersUtil.ExtractAttributeValue ("value", unitScaleNode),
- HandlersUtil.ExtractNodeValue(unitScaleNode) );
- }
-
- ResolutionConfiguration resConf = new ResolutionConfiguration(
- imageFormatName,
- xResPath, yResPath, unitsType,
- xResDefault, yResDefault, unitsTypeDefault,
- unitScale);
-
- col.Add(resConf);
- }
-
- col.Sort();
- return col;
- }
- }
-
- internal sealed class HandlersUtil {
- private HandlersUtil () {
- }
-
- static internal string ExtractNodeValue(XmlNode node, bool optional, bool allowEmpty) {
- if (node == null) {
- if (optional)
- return null;
- ThrowException ("Required node not found", node);
- }
-
- string nodeValue = node.InnerText;
-
- if (!allowEmpty && nodeValue == String.Empty) {
- string opt = optional ? "Optional" : "Required";
- ThrowException (opt + " node is empty", node);
- }
-
- return nodeValue;
- }
-
- static internal string ExtractNodeValue(XmlNode node, bool optional) {
- return ExtractNodeValue(node, false, false);
- }
-
- static internal string ExtractNodeValue(XmlNode node) {
- return ExtractNodeValue(node, false);
- }
-
- static internal string ExtractAttributeValue (string attKey, XmlNode node) {
- return ExtractAttributeValue (attKey, node, false);
- }
-
- static internal string ExtractAttributeValue (string attKey, XmlNode node, bool optional) {
- return ExtractAttributeValue (attKey, node, optional, false);
- }
-
- static internal string ExtractAttributeValue (string attKey, XmlNode node, bool optional,
- bool allowEmpty) {
- if (node.Attributes == null) {
- if (optional)
- return null;
-
- ThrowException ("Required attribute not found: " + attKey, node);
- }
-
- XmlNode att = node.Attributes.RemoveNamedItem (attKey);
- if (att == null) {
- if (optional)
- return null;
- ThrowException ("Required attribute not found: " + attKey, node);
- }
-
- string value = att.Value;
- if (!allowEmpty && value == String.Empty) {
- string opt = optional ? "Optional" : "Required";
- ThrowException (opt + " attribute is empty: " + attKey, node);
- }
-
- return value;
- }
-
- static internal void ThrowException (string msg, XmlNode node) {
- if (node != null && node.Name != String.Empty)
- msg = msg + " (node name: " + node.Name + ") ";
- throw new ConfigurationException (msg, node);
- }
- }
-}