Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Feb 22, 2024
1 parent bcbe145 commit fb70235
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions src/Neo.Compiler.CSharp/MethodConvert/ConstructorConvert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Neo.IO;
using Neo.SmartContract;
using Neo.SmartContract.Native;
using Neo.VM;
using scfx::Neo.SmartContract.Framework.Attributes;
using System;
using System.Linq;
using System.Runtime.InteropServices;

namespace Neo.Compiler;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ private void EnsureIntegerInRange(ITypeSymbol type)
endTarget.Instruction = AddInstruction(OpCode.NOP);
}


private void ConvertObjectToString(SemanticModel model, ExpressionSyntax expression)
{
ITypeSymbol? type = model.GetTypeInfo(expression).Type;
Expand Down
1 change: 0 additions & 1 deletion src/Neo.Compiler.CSharp/MethodConvert/MethodConvert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ namespace Neo.Compiler
{
partial class MethodConvert
{

#region Fields

private readonly CompilationContext context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ namespace Neo.Compiler;

partial class MethodConvert
{

private void ConvertBinaryPattern(SemanticModel model, BinaryPatternSyntax pattern, byte localIndex)
{
switch (pattern.OperatorToken.ValueText)
Expand Down
1 change: 0 additions & 1 deletion src/Neo.Compiler.CSharp/MethodConvert/Pattern/Pattern.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Neo.VM;

namespace Neo.Compiler;

Expand Down
3 changes: 1 addition & 2 deletions src/Neo.Compiler.CSharp/MethodConvert/StackHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
// modifications are permitted.

extern alias scfx;

using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Neo.VM;
using System.Buffers.Binary;
using System;
using System.Buffers.Binary;
using System.Numerics;

namespace Neo.Compiler;
Expand Down

0 comments on commit fb70235

Please sign in to comment.