From 4aaa7288b31997d7462867d03b262cd6376ed062 Mon Sep 17 00:00:00 2001 From: alrado Date: Wed, 12 May 2021 21:17:48 +0300 Subject: [PATCH 1/2] Minor fix: removed unnecessary constructors in Errors --- MiniScript-cs/MiniscriptErrors.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/MiniScript-cs/MiniscriptErrors.cs b/MiniScript-cs/MiniscriptErrors.cs index 0f3f821..efc7cf4 100644 --- a/MiniScript-cs/MiniscriptErrors.cs +++ b/MiniScript-cs/MiniscriptErrors.cs @@ -35,9 +35,6 @@ public override string ToString() { public class MiniscriptException: Exception { public SourceLoc location; - public MiniscriptException() { - } - public MiniscriptException(string message) : base(message) { } @@ -111,8 +108,6 @@ public IndexException(string message, Exception inner) : base(message, inner) { } public class KeyException : RuntimeException { - private KeyException() {} // don't use this version - public KeyException(string key) : base("Key Not Found: '" + key + "' not found in map") { } @@ -154,8 +149,6 @@ public LimitExceededException(string message, Exception inner) : base(message, i } public class UndefinedIdentifierException : RuntimeException { - private UndefinedIdentifierException() {} // don't call this version! - public UndefinedIdentifierException(string ident) : base( "Undefined Identifier: '" + ident + "' is unknown in this context") { } From 7b14956a2da1a5be88ab05039147e54d1719eea2 Mon Sep 17 00:00:00 2001 From: alrado Date: Wed, 12 May 2021 21:37:14 +0300 Subject: [PATCH 2/2] Minor changes: deleted an unused method Value.UIntValue() --- MiniScript-cs/MiniscriptTypes.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/MiniScript-cs/MiniscriptTypes.cs b/MiniScript-cs/MiniscriptTypes.cs index b3b5af0..de5d042 100644 --- a/MiniScript-cs/MiniscriptTypes.cs +++ b/MiniScript-cs/MiniscriptTypes.cs @@ -66,14 +66,6 @@ public virtual int IntValue() { return (int)DoubleValue(); } - /// - /// Get the numeric value of this Value as an unsigned integer. - /// - /// this value, as unsigned int - public virtual uint UIntValue() { - return (uint)DoubleValue(); - } - /// /// Get the numeric value of this Value as a single-precision float. ///