Remove some unused variables

This commit is contained in:
UnknownShadow200 2017-06-26 19:39:10 +10:00
parent 516cfb8af6
commit 18bbaa053f
4 changed files with 1 additions and 9 deletions

View File

@ -66,7 +66,6 @@ namespace MCGalaxy.Blocks.Physics {
ushort x, y, z;
lvl.IntToPos(C.b, out x, out y, out z);
int oneY = lvl.Width * lvl.Length;
ActivateTDoor(lvl, (ushort)(x - 1), y, z);
ActivateTDoor(lvl, (ushort)(x + 1), y, z);
ActivateTDoor(lvl, x, (ushort)(y - 1), z);

View File

@ -697,10 +697,6 @@ namespace MCGalaxy.Commands.CPE {
};
internal static void Help(Player p, string cmd) {
// TODO: find a nicer way of doing this
string fullCmd = cmd.Replace("lb", "levelblock")
.Replace("gb", "globalblock");
Player.Message(p, "%T{0} add [id] %H- begins creating a new custom block.", cmd);
Player.Message(p, "%T{0} copy [source id] [new id] %H- clones a new custom block from an existing custom block.", cmd);
Player.Message(p, "%T{0} edit [id] [property] [value] %H- edits the given property of that custom block.", cmd);

View File

@ -32,7 +32,6 @@ namespace MCGalaxy.Network {
volatile bool hookedEvents = false;
Dictionary<string, List<string>> userMap = new Dictionary<string, List<string>>();
DateTime lastWho, lastOpWho;
static char[] trimChars = new char[] { ' ' };
IRCPlugin plugin = new IRCPlugin();
/// <summary> Hooks IRC events so they are handled. </summary>

View File

@ -98,15 +98,13 @@ namespace MCGalaxy.Tasks {
}
return minTask;
}
SchedulerTask lastTask = null;
void DoTask(SchedulerTask task) {
try {
task.Callback(task);
} catch (Exception ex) {
MCGalaxy.Logger.LogError(ex);
}
lastTask = task;
if (task.Repeating) {
task.NextRun = DateTime.UtcNow.Add(task.Delay);