Skip to content

Commit

Permalink
Remove redundant 'private import' statements
Browse files Browse the repository at this point in the history
Imports are private by default.
  • Loading branch information
mathiascode committed Aug 12, 2024
1 parent b0c756f commit 272b6ad
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 40 deletions.
10 changes: 5 additions & 5 deletions src/db.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ module db;

import defines;

private import std.string : format, join, split, replace, toStringz;
private import std.stdio : writeln, write;
private import std.file : exists, isFile, getAttributes;
private import std.conv : to, octal, ConvException;
import std.string : format, join, split, replace, toStringz;
import std.stdio : writeln, write;
import std.file : exists, isFile, getAttributes;
import std.conv : to, octal, ConvException;

private import etc.c.sqlite3;
import etc.c.sqlite3;

class Sdb
{
Expand Down
18 changes: 9 additions & 9 deletions src/messages.d
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ module messages;

import defines;

private import std.bitmanip;
private import std.conv : to;
private import std.digest : digest, LetterCase, toHexString;
private import std.digest.md : MD5;
private import std.format : format;
private import std.outbuffer : OutBuffer;
private import std.stdio : writeln;

private import message_codes;
import std.bitmanip;
import std.conv : to;
import std.digest : digest, LetterCase, toHexString;
import std.digest.md : MD5;
import std.format : format;
import std.outbuffer : OutBuffer;
import std.stdio : writeln;

import message_codes;

class Message
{ // Server message
Expand Down
40 changes: 20 additions & 20 deletions src/server.d
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ module server;

import defines;

private import client;
private import messages, message_codes;
private import db;
private import room;
private import pm;

private import std.stdio : write, writeln;
private import std.socket : Socket, TcpSocket, SocketOption, SocketOptionLevel,
import client;
import messages, message_codes;
import db;
import room;
import pm;

import std.stdio : write, writeln;
import std.socket : Socket, TcpSocket, SocketOption, SocketOptionLevel,
SocketSet, InternetAddress, SocketAcceptException,
SocketShutdown;
private import std.conv : to;
private import std.array : split, join, replace;
private import core.stdc.time : time;
private import std.utf : validate, UTFException;
private import std.format : format;
private import std.algorithm : canFind;
private import std.datetime : Duration, dur;
private import std.digest.md : md5Of;
private import std.string : strip;
private import std.process : thisProcessID;

private import core.sys.posix.unistd : fork;
import std.conv : to;
import std.array : split, join, replace;
import core.stdc.time : time;
import std.utf : validate, UTFException;
import std.format : format;
import std.algorithm : canFind;
import std.datetime : Duration, dur;
import std.digest.md : md5Of;
import std.string : strip;
import std.process : thisProcessID;

import core.sys.posix.unistd : fork;


private void help(string[] args)
Expand Down
12 changes: 6 additions & 6 deletions src/soulsetup.d
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ module setup;

import defines;

private import db;
import db;

private import std.algorithm : sort;
private import std.conv : to;
private import std.format : format;
private import std.stdio : readf, readln, write, writeln;
private import std.string : chomp, strip;
import std.algorithm : sort;
import std.conv : to;
import std.format : format;
import std.stdio : readf, readln, write, writeln;
import std.string : chomp, strip;

Sdb sdb;

Expand Down

0 comments on commit 272b6ad

Please sign in to comment.