Skip to content

Commit

Permalink
Merge pull request #54 from AlRado/master
Browse files Browse the repository at this point in the history
Minor fix: removed unnecessary constructors in Errors
  • Loading branch information
JoeStrout authored Nov 10, 2023
2 parents 512bf8a + 7b14956 commit 0b5d6fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions MiniScript-cs/MiniscriptErrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ public override string ToString() {
public class MiniscriptException: Exception {
public SourceLoc location;

public MiniscriptException() {
}

public MiniscriptException(string message) : base(message) {
}

Expand Down Expand Up @@ -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") {
}

Expand Down Expand Up @@ -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") {
}
Expand Down
8 changes: 0 additions & 8 deletions MiniScript-cs/MiniscriptTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ public virtual int IntValue() {
return (int)DoubleValue();
}

/// <summary>
/// Get the numeric value of this Value as an unsigned integer.
/// </summary>
/// <returns>this value, as unsigned int</returns>
public virtual uint UIntValue() {
return (uint)DoubleValue();
}

/// <summary>
/// Get the numeric value of this Value as a single-precision float.
/// </summary>
Expand Down

0 comments on commit 0b5d6fe

Please sign in to comment.