From 3e4aa6034328e6522290168fc5ca75d9d7bd17c2 Mon Sep 17 00:00:00 2001 From: x19 <0x39015319@gmail.com> Date: Wed, 5 Jun 2024 16:01:09 -0400 Subject: [PATCH] remove unused imports --- src/cmd/cmd.zig | 1 - src/gossip/service.zig | 1 - src/net/echo.zig | 1 - src/trace/log.zig | 1 - src/tvu/repair_message.zig | 1 - 5 files changed, 5 deletions(-) diff --git a/src/cmd/cmd.zig b/src/cmd/cmd.zig index 500cb2224..60d2b3eb2 100644 --- a/src/cmd/cmd.zig +++ b/src/cmd/cmd.zig @@ -44,7 +44,6 @@ const SOCKET_TIMEOUT_US = @import("../net/socket_utils.zig").SOCKET_TIMEOUT_US; const config = @import("config.zig"); // var validator_config = config.current; -const ACCOUNT_INDEX_BINS = @import("../accountsdb/db.zig").ACCOUNT_INDEX_BINS; const socket_tag = @import("../gossip/data.zig").socket_tag; // TODO: use better allocator, unless GPA becomes more performant. diff --git a/src/gossip/service.zig b/src/gossip/service.zig index 85235c0f9..654666a23 100644 --- a/src/gossip/service.zig +++ b/src/gossip/service.zig @@ -1,5 +1,4 @@ const std = @import("std"); -const builtin = @import("builtin"); const network = @import("zig-network"); const EndPoint = network.EndPoint; const Packet = @import("../net/packet.zig").Packet; diff --git a/src/net/echo.zig b/src/net/echo.zig index 72a0dea94..ec94af753 100644 --- a/src/net/echo.zig +++ b/src/net/echo.zig @@ -4,7 +4,6 @@ const net = @import("net.zig"); const ShredVersion = @import("../core/shred.zig").ShredVersion; const SocketAddr = @import("net.zig").SocketAddr; const logger = @import("../trace/log.zig").default_logger; -const Channel = @import("../sync/channel.zig").Channel; const Atomic = std.atomic.Value; const assert = std.debug.assert; const testing = std.testing; diff --git a/src/trace/log.zig b/src/trace/log.zig index 08d3a2873..3c07ab208 100644 --- a/src/trace/log.zig +++ b/src/trace/log.zig @@ -8,7 +8,6 @@ const testing = std.testing; const Mutex = std.Thread.Mutex; const AtomicBool = std.atomic.Value(bool); const Channel = @import("../sync/channel.zig").Channel; -const OnceCell = @import("../sync/once_cell.zig").OnceCell; var gpa = std.heap.GeneralPurposeAllocator(.{}){}; var gpa_allocator = gpa.allocator(); diff --git a/src/tvu/repair_message.zig b/src/tvu/repair_message.zig index a78beb120..0b91e6a35 100644 --- a/src/tvu/repair_message.zig +++ b/src/tvu/repair_message.zig @@ -5,7 +5,6 @@ const bincode = @import("../bincode/bincode.zig"); const Allocator = std.mem.Allocator; const KeyPair = std.crypto.sign.Ed25519.KeyPair; -const LegacyContactInfo = @import("../gossip/data.zig").LegacyContactInfo; const Nonce = @import("../core/shred.zig").Nonce; const Pong = @import("../gossip/ping_pong.zig").Pong; const Pubkey = @import("../core/pubkey.zig").Pubkey;