diff --git a/CSJ2K/J2kImage.cs b/CSJ2K/J2kImage.cs
index 2514d403..fdeed3de 100644
--- a/CSJ2K/J2kImage.cs
+++ b/CSJ2K/J2kImage.cs
@@ -460,7 +460,7 @@ namespace CSJ2K
rate = float.MaxValue;
}
}
- catch (FormatException e)
+ catch (FormatException)
{
error("Invalid value in 'rate' option: " + pl.getParameter("rate"), 2);
return null;
@@ -483,7 +483,7 @@ namespace CSJ2K
}
}
}
- catch (FormatException e)
+ catch (FormatException)
{
error("Invalid value in 'tile_parts' option: " + pl.getParameter("tile_parts"), 2);
return null;
@@ -523,11 +523,11 @@ namespace CSJ2K
refx = Int32.Parse(refs[0]);
refy = Int32.Parse(refs[1]);
}
- catch (IndexOutOfRangeException e)
+ catch (IndexOutOfRangeException)
{
throw new ArgumentException("Error while parsing 'ref' " + "option");
}
- catch (FormatException e)
+ catch (FormatException)
{
throw new ArgumentException("Invalid number type in " + "'ref' option");
}
@@ -545,11 +545,11 @@ namespace CSJ2K
trefx = Int32.Parse(trefs[0]);
trefy = Int32.Parse(trefs[1]);
}
- catch (IndexOutOfRangeException e)
+ catch (IndexOutOfRangeException)
{
throw new ArgumentException("Error while parsing 'tref' " + "option");
}
- catch (FormatException e)
+ catch (FormatException)
{
throw new ArgumentException("Invalid number type in " + "'tref' option");
}
diff --git a/CSJ2K/j2k/IntegerSpec.cs b/CSJ2K/j2k/IntegerSpec.cs
index 853e759e..540e0ad8 100644
--- a/CSJ2K/j2k/IntegerSpec.cs
+++ b/CSJ2K/j2k/IntegerSpec.cs
@@ -167,7 +167,7 @@ namespace CSJ2K.j2k
{
setDefault((System.Object) System.Int32.Parse(param));
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Non recognized value" + " for option -" + optName + ": " + param);
}
@@ -218,7 +218,7 @@ namespace CSJ2K.j2k
{
value_Renamed = System.Int32.Parse(word);
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Non recognized value" + " for option -" + optName + ": " + word);
}
@@ -290,7 +290,7 @@ namespace CSJ2K.j2k
{
setDefault((System.Object) System.Int32.Parse(param));
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Non recognized value" + " for option -" + optName + ": " + param);
}
diff --git a/CSJ2K/j2k/ModuleSpec.cs b/CSJ2K/j2k/ModuleSpec.cs
index 7b1d7066..286e2e31 100644
--- a/CSJ2K/j2k/ModuleSpec.cs
+++ b/CSJ2K/j2k/ModuleSpec.cs
@@ -140,7 +140,7 @@ namespace CSJ2K.j2k
ms = (ModuleSpec) base.MemberwiseClone();
}
//UPGRADE_NOTE: Exception 'java.lang.CloneNotSupportedException' was converted to 'System.Exception' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'"
- catch (System.Exception e)
+ catch (System.Exception)
{
throw new System.InvalidOperationException("Error when cloning ModuleSpec instance");
}
diff --git a/CSJ2K/j2k/codestream/HeaderInfo.cs b/CSJ2K/j2k/codestream/HeaderInfo.cs
index 42f2df57..f99f2495 100644
--- a/CSJ2K/j2k/codestream/HeaderInfo.cs
+++ b/CSJ2K/j2k/codestream/HeaderInfo.cs
@@ -243,7 +243,7 @@ namespace CSJ2K.j2k.codestream
ms = (SIZ) this.Clone();
}
//UPGRADE_NOTE: Exception 'java.lang.CloneNotSupportedException' was converted to 'System.Exception' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'"
- catch (System.Exception e)
+ catch (System.Exception)
{
throw new System.InvalidOperationException("Cannot clone SIZ marker segment");
}
@@ -443,7 +443,7 @@ namespace CSJ2K.j2k.codestream
ms = (COD) this.Clone();
}
//UPGRADE_NOTE: Exception 'java.lang.CloneNotSupportedException' was converted to 'System.Exception' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'"
- catch (System.Exception e)
+ catch (System.Exception)
{
throw new System.InvalidOperationException("Cannot clone SIZ marker segment");
}
@@ -1340,7 +1340,7 @@ namespace CSJ2K.j2k.codestream
nhi = (HeaderInfo) Clone();
}
//UPGRADE_NOTE: Exception 'java.lang.CloneNotSupportedException' was converted to 'System.Exception' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'"
- catch (System.Exception e)
+ catch (System.Exception)
{
throw new System.InvalidOperationException("Cannot clone HeaderInfo instance");
}
diff --git a/CSJ2K/j2k/codestream/reader/FileBitstreamReaderAgent.cs b/CSJ2K/j2k/codestream/reader/FileBitstreamReaderAgent.cs
index d1a7cb47..a116dcce 100644
--- a/CSJ2K/j2k/codestream/reader/FileBitstreamReaderAgent.cs
+++ b/CSJ2K/j2k/codestream/reader/FileBitstreamReaderAgent.cs
@@ -257,11 +257,11 @@ namespace CSJ2K.j2k.codestream.reader
trate = System.Single.MaxValue;
}
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.InvalidOperationException("Invalid value in 'rate' option: " + pl.getParameter("rate"));
}
- catch (System.ArgumentException e)
+ catch (System.ArgumentException)
{
throw new System.InvalidOperationException("'rate' option is missing");
}
@@ -270,11 +270,11 @@ namespace CSJ2K.j2k.codestream.reader
{
tnbytes = pl.getIntParameter("nbytes");
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.InvalidOperationException("Invalid value in 'nbytes' option: " + pl.getParameter("nbytes"));
}
- catch (System.ArgumentException e)
+ catch (System.ArgumentException)
{
throw new System.InvalidOperationException("'nbytes' option is missing");
}
@@ -308,11 +308,11 @@ namespace CSJ2K.j2k.codestream.reader
{
ncbQuit = pl.getIntParameter("ncb_quit");
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.InvalidOperationException("Invalid value in 'ncb_quit' option: " + pl.getParameter("ncb_quit"));
}
- catch (System.ArgumentException e)
+ catch (System.ArgumentException)
{
throw new System.InvalidOperationException("'ncb_quit' option is missing");
}
@@ -325,11 +325,11 @@ namespace CSJ2K.j2k.codestream.reader
{
lQuit = pl.getIntParameter("l_quit");
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.InvalidOperationException("Invalid value in 'l_quit' option: " + pl.getParameter("l_quit"));
}
- catch (System.ArgumentException e)
+ catch (System.ArgumentException)
{
throw new System.InvalidOperationException("'l_quit' option is missing");
}
@@ -495,7 +495,7 @@ namespace CSJ2K.j2k.codestream.reader
}
}
}
- catch (System.IO.EndOfStreamException e)
+ catch (System.IO.EndOfStreamException)
{
if (printInfo)
{
@@ -571,7 +571,7 @@ namespace CSJ2K.j2k.codestream.reader
throw new System.ArgumentException("Specified negative " + "resolution level index: " + targetRes);
}
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Invalid resolution level " + "index ('-res' option) " + pl.getParameter("res"));
}
@@ -601,7 +601,7 @@ namespace CSJ2K.j2k.codestream.reader
FacilityManager.getMsgLogger().printmsg(CSJ2K.j2k.util.MsgLogger_Fields.WARNING, "EOC marker not found. " + "Codestream is corrupted.");
}
}
- catch (System.IO.EndOfStreamException e)
+ catch (System.IO.EndOfStreamException)
{
FacilityManager.getMsgLogger().printmsg(CSJ2K.j2k.util.MsgLogger_Fields.WARNING, "EOC marker is missing");
}
@@ -2057,7 +2057,7 @@ namespace CSJ2K.j2k.codestream.reader
}
in_Renamed.seek(firstPackOff[t][0]);
}
- catch (System.IO.EndOfStreamException e)
+ catch (System.IO.EndOfStreamException)
{
FacilityManager.getMsgLogger().printmsg(CSJ2K.j2k.util.MsgLogger_Fields.WARNING, "Codestream truncated in tile " + t);
return ;
@@ -2522,11 +2522,11 @@ namespace CSJ2K.j2k.codestream.reader
throw new System.ArgumentException();
}
}
- catch (System.IndexOutOfRangeException e)
+ catch (System.IndexOutOfRangeException)
{
throw new System.ArgumentException("Code-block (t:" + t + ", c:" + c + ", r:" + r + ", s:" + s + ", " + m + "x" + (+ n) + ") not found in codestream");
}
- catch (System.NullReferenceException e)
+ catch (System.NullReferenceException)
{
throw new System.ArgumentException("Code-block (t:" + t + ", c:" + c + ", r:" + r + ", s:" + s + ", " + m + "x" + n + ") not found in bit stream");
}
diff --git a/CSJ2K/j2k/codestream/reader/PktDecoder.cs b/CSJ2K/j2k/codestream/reader/PktDecoder.cs
index 1fbfca2c..c18734de 100644
--- a/CSJ2K/j2k/codestream/reader/PktDecoder.cs
+++ b/CSJ2K/j2k/codestream/reader/PktDecoder.cs
@@ -1311,7 +1311,7 @@ namespace CSJ2K.j2k.codestream.reader
}
}
}
- catch (System.IO.EndOfStreamException e)
+ catch (System.IO.EndOfStreamException)
{
// Remove found information in this code-block
if (l == 0)
@@ -1421,7 +1421,7 @@ namespace CSJ2K.j2k.codestream.reader
{
ehs.seek(curOff);
}
- catch (System.IO.EndOfStreamException e)
+ catch (System.IO.EndOfStreamException)
{
if (l == 0)
{
diff --git a/CSJ2K/j2k/decoder/DecoderSpecs.cs b/CSJ2K/j2k/decoder/DecoderSpecs.cs
index b8f191ba..bc409030 100644
--- a/CSJ2K/j2k/decoder/DecoderSpecs.cs
+++ b/CSJ2K/j2k/decoder/DecoderSpecs.cs
@@ -77,7 +77,7 @@ namespace CSJ2K.j2k.decoder
decSpec2 = (DecoderSpecs) this.Clone();
}
//UPGRADE_NOTE: Exception 'java.lang.CloneNotSupportedException' was converted to 'System.Exception' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'"
- catch (System.Exception e)
+ catch (System.Exception)
{
throw new System.InvalidOperationException("Cannot clone the DecoderSpecs instance");
}
diff --git a/CSJ2K/j2k/entropy/CBlkSizeSpec.cs b/CSJ2K/j2k/entropy/CBlkSizeSpec.cs
index a4c32840..fd2cd3e2 100644
--- a/CSJ2K/j2k/entropy/CBlkSizeSpec.cs
+++ b/CSJ2K/j2k/entropy/CBlkSizeSpec.cs
@@ -208,7 +208,7 @@ namespace CSJ2K.j2k.entropy
throw new System.ArgumentException(errMsg);
}
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
errMsg = "'" + optName + "' option : the code-block's " + "width could not be parsed.";
throw new System.ArgumentException(errMsg);
@@ -218,7 +218,7 @@ namespace CSJ2K.j2k.entropy
{
word = stk.NextToken();
}
- catch (System.ArgumentOutOfRangeException e)
+ catch (System.ArgumentOutOfRangeException)
{
errMsg = "'" + optName + "' option : could not parse the " + "code-block's height";
throw new System.ArgumentException(errMsg);
@@ -255,7 +255,7 @@ namespace CSJ2K.j2k.entropy
throw new System.ArgumentException(errMsg);
}
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
errMsg = "'" + optName + "' option : the code-block's height " + "could not be parsed.";
throw new System.ArgumentException(errMsg);
diff --git a/CSJ2K/j2k/entropy/PrecinctSizeSpec.cs b/CSJ2K/j2k/entropy/PrecinctSizeSpec.cs
index 01202e0d..a55e3601 100644
--- a/CSJ2K/j2k/entropy/PrecinctSizeSpec.cs
+++ b/CSJ2K/j2k/entropy/PrecinctSizeSpec.cs
@@ -234,7 +234,7 @@ namespace CSJ2K.j2k.entropy
{
word = stk.NextToken();
}
- catch (System.ArgumentOutOfRangeException e)
+ catch (System.ArgumentOutOfRangeException)
{
errMsg = "'" + optName + "' option : could not " + "parse the precinct's width";
throw new System.ArgumentException(errMsg);
@@ -247,7 +247,7 @@ namespace CSJ2K.j2k.entropy
throw new System.ArgumentException(errMsg);
}
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
errMsg = "'" + optName + "' option : the argument '" + word + "' could not be parsed.";
throw new System.ArgumentException(errMsg);
diff --git a/CSJ2K/j2k/entropy/ProgressionSpec.cs b/CSJ2K/j2k/entropy/ProgressionSpec.cs
index 72436765..3ccdadee 100644
--- a/CSJ2K/j2k/entropy/ProgressionSpec.cs
+++ b/CSJ2K/j2k/entropy/ProgressionSpec.cs
@@ -201,7 +201,7 @@ namespace CSJ2K.j2k.entropy
{
tmp = (System.Int32.Parse(word));
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
// Progression has missing parameters
throw new System.ArgumentException("Progression " + "order" + " specification " + "has missing " + "parameters: " + param);
diff --git a/CSJ2K/j2k/entropy/encoder/PostCompRateAllocator.cs b/CSJ2K/j2k/entropy/encoder/PostCompRateAllocator.cs
index 6713af7c..6d07a577 100644
--- a/CSJ2K/j2k/entropy/encoder/PostCompRateAllocator.cs
+++ b/CSJ2K/j2k/entropy/encoder/PostCompRateAllocator.cs
@@ -262,7 +262,7 @@ namespace CSJ2K.j2k.entropy.encoder
{
stok.NextToken();
}
- catch (System.IO.IOException e)
+ catch (System.IO.IOException)
{
throw new System.InvalidOperationException("An IOException has ocurred where it " + "should never occur");
}
@@ -327,7 +327,7 @@ namespace CSJ2K.j2k.entropy.encoder
{
stok.NextToken();
}
- catch (System.IO.IOException e)
+ catch (System.IO.IOException)
{
throw new System.InvalidOperationException("An IOException has ocurred where it " + "should never occur");
}
@@ -345,7 +345,7 @@ namespace CSJ2K.j2k.entropy.encoder
{
stok.NextToken();
}
- catch (System.IO.IOException e)
+ catch (System.IO.IOException)
{
throw new System.InvalidOperationException("An IOException has ocurred where it " + "should never occur");
}
diff --git a/CSJ2K/j2k/fileformat/reader/FileFormatReader.cs b/CSJ2K/j2k/fileformat/reader/FileFormatReader.cs
index 620bd91f..5078b6dd 100644
--- a/CSJ2K/j2k/fileformat/reader/FileFormatReader.cs
+++ b/CSJ2K/j2k/fileformat/reader/FileFormatReader.cs
@@ -260,7 +260,7 @@ namespace CSJ2K.j2k.fileformat.reader
in_Renamed.seek(pos + length);
}
}
- catch (System.IO.EndOfStreamException e)
+ catch (System.IO.EndOfStreamException)
{
throw new System.InvalidOperationException("EOF reached before finding Contiguous " + "Codestream Box");
}
diff --git a/CSJ2K/j2k/image/input/ImgReaderPGX.cs b/CSJ2K/j2k/image/input/ImgReaderPGX.cs
index 496a72cd..0bba25aa 100644
--- a/CSJ2K/j2k/image/input/ImgReaderPGX.cs
+++ b/CSJ2K/j2k/image/input/ImgReaderPGX.cs
@@ -158,15 +158,11 @@ namespace CSJ2K.j2k.image.input
//UPGRADE_ISSUE: Method 'java.io.RandomAccessFile.readLine' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaioRandomAccessFilereadLine'"
header = in_reader.ReadLine();
}
- catch (System.IO.IOException e)
+ catch (System.IO.IOException)
{
throw new System.IO.IOException("Not a PGX file");
}
- if (header == null)
- {
- throw new System.IO.IOException("Empty file");
- }
- offset = (header.Length + 1);
+ offset = header?.Length + 1 ?? throw new System.IO.IOException("Empty file");
//Get informations from header
SupportClass.Tokenizer st = new SupportClass.Tokenizer(header);
@@ -210,12 +206,12 @@ namespace CSJ2K.j2k.image.input
w = (System.Int32.Parse(st.NextToken()));
h = (System.Int32.Parse(st.NextToken()));
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.IO.IOException("Not a PGX file");
}
}
- catch (System.ArgumentOutOfRangeException e)
+ catch (System.ArgumentOutOfRangeException)
{
throw new System.IO.IOException("Not a PGX file");
}
diff --git a/CSJ2K/j2k/quantization/GuardBitsSpec.cs b/CSJ2K/j2k/quantization/GuardBitsSpec.cs
index 3c7a40b5..b630e5ca 100644
--- a/CSJ2K/j2k/quantization/GuardBitsSpec.cs
+++ b/CSJ2K/j2k/quantization/GuardBitsSpec.cs
@@ -138,7 +138,7 @@ namespace CSJ2K.j2k.quantization
{
value_Renamed = System.Int32.Parse(word);
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Bad parameter for " + "-Qguard_bits option" + " : " + word);
}
diff --git a/CSJ2K/j2k/quantization/QuantStepSizeSpec.cs b/CSJ2K/j2k/quantization/QuantStepSizeSpec.cs
index a725f47d..7856325a 100644
--- a/CSJ2K/j2k/quantization/QuantStepSizeSpec.cs
+++ b/CSJ2K/j2k/quantization/QuantStepSizeSpec.cs
@@ -138,7 +138,7 @@ namespace CSJ2K.j2k.quantization
//UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
value_Renamed = System.Single.Parse(word);
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Bad parameter for " + "-Qstep option : " + word);
}
diff --git a/CSJ2K/j2k/roi/encoder/ROIScaler.cs b/CSJ2K/j2k/roi/encoder/ROIScaler.cs
index 93ad6fff..e71cdd0f 100644
--- a/CSJ2K/j2k/roi/encoder/ROIScaler.cs
+++ b/CSJ2K/j2k/roi/encoder/ROIScaler.cs
@@ -403,11 +403,11 @@ namespace CSJ2K.j2k.roi.encoder
word = stok.NextToken();
h = (System.Int32.Parse(word));
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Bad parameter for " + "'-Rroi R' option : " + word);
}
- catch (System.ArgumentOutOfRangeException f)
+ catch (System.ArgumentOutOfRangeException)
{
throw new System.ArgumentException("Wrong number of " + "parameters for " + "h'-Rroi R' option.");
}
@@ -445,11 +445,11 @@ namespace CSJ2K.j2k.roi.encoder
word = stok.NextToken();
rad = (System.Int32.Parse(word));
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Bad parameter for " + "'-Rroi C' option : " + word);
}
- catch (System.ArgumentOutOfRangeException f)
+ catch (System.ArgumentOutOfRangeException)
{
throw new System.ArgumentException("Wrong number of " + "parameters for " + "'-Rroi C' option.");
}
@@ -485,7 +485,7 @@ namespace CSJ2K.j2k.roi.encoder
{
filename = stok.NextToken();
}
- catch (System.ArgumentOutOfRangeException e)
+ catch (System.ArgumentOutOfRangeException)
{
throw new System.ArgumentException("Wrong number of " + "parameters for " + "'-Rroi A' option.");
}
@@ -493,7 +493,7 @@ namespace CSJ2K.j2k.roi.encoder
{
maskPGM = new ImgReaderPGM(filename);
}
- catch (System.IO.IOException e)
+ catch (System.IO.IOException)
{
throw new System.InvalidOperationException("Cannot read PGM file with ROI");
}
diff --git a/CSJ2K/j2k/util/ISRandomAccessIO.cs b/CSJ2K/j2k/util/ISRandomAccessIO.cs
index a1d7d7e8..d847d899 100644
--- a/CSJ2K/j2k/util/ISRandomAccessIO.cs
+++ b/CSJ2K/j2k/util/ISRandomAccessIO.cs
@@ -213,7 +213,7 @@ namespace CSJ2K.j2k.util
{
newbuf = new byte[buf.Length + inc];
}
- catch (System.OutOfMemoryException e)
+ catch (System.OutOfMemoryException)
{
throw new System.IO.IOException("Out of memory to cache input data");
}
diff --git a/CSJ2K/j2k/wavelet/analysis/ForwardWT.cs b/CSJ2K/j2k/wavelet/analysis/ForwardWT.cs
index 67e5ec5d..b0f795c8 100644
--- a/CSJ2K/j2k/wavelet/analysis/ForwardWT.cs
+++ b/CSJ2K/j2k/wavelet/analysis/ForwardWT.cs
@@ -170,7 +170,7 @@ namespace CSJ2K.j2k.wavelet.analysis
{
cb0x = (System.Int32.Parse(str));
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Bad first parameter for the " + "'-Wcboff' option: " + str);
}
@@ -184,7 +184,7 @@ namespace CSJ2K.j2k.wavelet.analysis
{
cb0y = (System.Int32.Parse(str));
}
- catch (System.FormatException e)
+ catch (System.FormatException)
{
throw new System.ArgumentException("Bad second parameter for the " + "'-Wcboff' option: " + str);
}
diff --git a/LibreMetaverse/Capabilities/CapsBase.cs b/LibreMetaverse/Capabilities/CapsBase.cs
index 8a6b5ba1..cb5afaed 100644
--- a/LibreMetaverse/Capabilities/CapsBase.cs
+++ b/LibreMetaverse/Capabilities/CapsBase.cs
@@ -26,7 +26,6 @@
using System;
using System.Net;
-using System.Net.Security;
using System.IO;
using System.Threading;
using System.Security.Cryptography.X509Certificates;
diff --git a/LibreMetaverse/Imaging/BakeLayer.cs b/LibreMetaverse/Imaging/BakeLayer.cs
index e7b0716b..85430a6e 100644
--- a/LibreMetaverse/Imaging/BakeLayer.cs
+++ b/LibreMetaverse/Imaging/BakeLayer.cs
@@ -28,7 +28,7 @@ using System;
using System.Reflection;
using System.Collections.Generic;
using System.IO;
-using System.Drawing;
+using System.DrawingCore;
using OpenMetaverse.Assets;
using log4net;
diff --git a/LibreMetaverse/ImportExport/ColladalLoader.cs b/LibreMetaverse/ImportExport/ColladalLoader.cs
index 31bb5ba0..108c6c09 100644
--- a/LibreMetaverse/ImportExport/ColladalLoader.cs
+++ b/LibreMetaverse/ImportExport/ColladalLoader.cs
@@ -30,7 +30,7 @@ using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.IO;
using System.Xml;
-using System.Drawing;
+using System.DrawingCore;
using System.Linq;
using System.Xml.Serialization;
using OpenMetaverse.ImportExport.Collada14;
@@ -154,9 +154,9 @@ namespace OpenMetaverse.ImportExport
Bitmap resized = new Bitmap(width, height, bitmap.PixelFormat);
Graphics graphics = Graphics.FromImage(resized);
- graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
+ graphics.SmoothingMode = System.DrawingCore.Drawing2D.SmoothingMode.HighQuality;
graphics.InterpolationMode =
- System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
+ System.DrawingCore.Drawing2D.InterpolationMode.HighQualityBicubic;
graphics.DrawImage(bitmap, 0, 0, width, height);
bitmap.Dispose();
diff --git a/Programs/examples/IRCGateway/IRCGateway.csproj b/Programs/examples/IRCGateway/IRCGateway.csproj
index 16034afc..cc16b5a0 100644
--- a/Programs/examples/IRCGateway/IRCGateway.csproj
+++ b/Programs/examples/IRCGateway/IRCGateway.csproj
@@ -55,12 +55,6 @@
1591,1574,0419
AnyCPU
-
-
- System
- False
-
-