Skip to content

Commit

Permalink
chore: Optimize imports. (#14)
Browse files Browse the repository at this point in the history
# Description
Optimize order of imports. Remove unused imports.
  • Loading branch information
Zurcusa authored Sep 10, 2024
1 parent 9670bd3 commit 40ef3ab
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.limechain.chain.lightsyncstate;

import com.limechain.polkaj.Hash256;
import com.limechain.tuple.Pair;
import lombok.Getter;
import lombok.Setter;
import com.limechain.tuple.Pair;
import lombok.ToString;

import java.math.BigInteger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.limechain.chain.lightsyncstate;

import com.limechain.tuple.Pair;
import lombok.Getter;
import lombok.Setter;
import com.limechain.tuple.Pair;

import java.math.BigInteger;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.limechain.chain.lightsyncstate;

import com.limechain.polkaj.Hash256;
import com.limechain.tuple.Pair;
import lombok.Getter;
import lombok.Setter;
import com.limechain.tuple.Pair;
import lombok.ToString;

import java.math.BigInteger;
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/limechain/network/kad/KademliaService.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@
import lombok.Getter;
import lombok.Setter;
import lombok.extern.java.Log;
import org.teavm.interop.Async;
import org.teavm.interop.AsyncCallback;
import org.teavm.jso.JSBody;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
import java.util.concurrent.ExecutionException;
import java.util.logging.Level;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.limechain.network.protocol.blockannounce.messages;

import com.limechain.config.HostConfig;
import com.limechain.network.protocol.blockannounce.NodeRole;
import com.limechain.polkaj.Hash256;
import com.limechain.rpc.server.AppBean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
package com.limechain.network.protocol.grandpa;

import com.limechain.network.ConnectionManager;
import com.limechain.network.kad.dto.Host;
import com.limechain.network.kad.dto.PeerId;
import com.limechain.network.protocol.NetworkService;
import com.limechain.network.protocol.blockannounce.BlockAnnounceEngine;
import com.limechain.network.protocol.blockannounce.teavm.BlockAnnounceHandler;
import com.limechain.network.protocol.grandpa.teavm.GrandpaHandler;
import lombok.extern.java.Log;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.limechain.network.protocol.warp.scale.reader;

import com.limechain.network.protocol.warp.dto.BlockHeader;
import com.limechain.network.protocol.warp.dto.Precommit;
import com.limechain.network.protocol.warp.dto.Justification;
import com.limechain.network.protocol.warp.dto.Precommit;
import com.limechain.polkaj.Hash256;
import com.limechain.polkaj.reader.ScaleCodecReader;
import com.limechain.polkaj.reader.ScaleReader;
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/limechain/sync/warpsync/WarpSyncState.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@

import com.limechain.chain.lightsyncstate.Authority;
import com.limechain.network.Network;
import com.limechain.network.kad.dto.PeerId;
import com.limechain.network.protocol.blockannounce.messages.BlockAnnounceMessage;
import com.limechain.network.protocol.grandpa.messages.commit.CommitMessage;
import com.limechain.network.protocol.grandpa.messages.neighbour.NeighbourMessage;
import com.limechain.network.protocol.warp.dto.BlockHeader;
import com.limechain.network.protocol.warp.dto.ConsensusEngine;
import com.limechain.network.protocol.warp.dto.DigestType;
import com.limechain.network.protocol.warp.dto.HeaderDigest;
import com.limechain.network.protocol.warp.dto.Justification;
import com.limechain.network.protocol.warp.scale.reader.BlockHeaderReader;
import com.limechain.network.protocol.warp.scale.reader.JustificationReader;
import com.limechain.polkaj.reader.ScaleCodecReader;
import com.limechain.rpc.ChainRpcClient;
import com.limechain.storage.block.SyncState;
import com.limechain.sync.JustificationVerifier;
import com.limechain.sync.warpsync.dto.AuthoritySetChange;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/limechain/utils/HashUtils.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.limechain.utils;

import com.limechain.polkaj.Hash256;
import lombok.experimental.UtilityClass;
import org.teavm.jso.JSBody;
import org.teavm.jso.core.JSString;
Expand Down

0 comments on commit 40ef3ab

Please sign in to comment.