Skip to content

Commit

Permalink
Remove the stat tracker
Browse files Browse the repository at this point in the history
The stat tracker has been offline for the last several weeks/months and
nobody has done anything to fix that. Because of that, GDPR, and the
fact that we haven't used it, we're discarding it.
  • Loading branch information
hakusaro committed Mar 30, 2019
1 parent 9441f18 commit f3e33b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 235 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin

## Upcoming Changes

## TShock 4.3.26
* Removed the stat tracking system. (@hakusaro)

## TShock 4.3.25
* Fixed a critical exploit in the Terraria protocol that could cause massive unpreventable world corruption as well as a number of other problems. Thanks to @bartico6 for reporting. Fixed by the efforts of @QuiCM, @hakusaro, and tips in the right directioon from @bartico6.

## TShock 4.3.24
* Updated OpenTerraria API to 1.3.5.3 (@DeathCradle)
* Updated Terraria Server API to 1.3.5.3 (@WhiteXZ, @hakusaro)
* Updated TShock core components to 1.3.5.3 (@hakusaro)
Expand Down
229 changes: 0 additions & 229 deletions TShockAPI/StatTracker.cs

This file was deleted.

5 changes: 0 additions & 5 deletions TShockAPI/TShock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ public class TShock : TerrariaPlugin
public static RestManager RestManager;
/// <summary>Utils - Static reference to the utilities class, which contains a variety of utility functions.</summary>
public static Utils Utils = Utils.Instance;
/// <summary>StatTracker - Static reference to the stat tracker, which sends some server metrics every 5 minutes.</summary>
public static StatTracker StatTracker = new StatTracker();
/// <summary>UpdateManager - Static reference to the update checker, which checks for updates and notifies server admins of updates.</summary>
public static UpdateManager UpdateManager;
/// <summary>Log - Static reference to the log system, which outputs to either SQL or a text file, depending on user config.</summary>
Expand Down Expand Up @@ -720,13 +718,11 @@ private void HandleCommandLine(string[] parms)
}
})

.AddFlag("--provider-token", (token) => StatTracker.ProviderToken = token)

//Flags without arguments
.AddFlag("-logclear", () => LogClear = true)
.AddFlag("-autoshutdown", () => Main.instance.EnableAutoShutdown())
.AddFlag("-dump", () => Utils.Dump())
.AddFlag("--stats-optout", () => StatTracker.OptOut = true)
.AddFlag("--no-restart", () => NoRestart = true);

CliParser.ParseFromSource(parms);
Expand Down Expand Up @@ -876,7 +872,6 @@ private void OnPostInit(EventArgs args)
}

UpdateManager = new UpdateManager();
StatTracker.Start();
}

/// <summary>ComputeMaxStyles - Computes the max styles...</summary>
Expand Down
1 change: 0 additions & 1 deletion TShockAPI/TShockAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@
<Compile Include="Rest\RestVerbs.cs" />
<Compile Include="Rest\SecureRest.cs" />
<Compile Include="ServerSideCharacters\ServerSideConfig.cs" />
<Compile Include="StatTracker.cs" />
<Compile Include="TSServerPlayer.cs" />
<Compile Include="Utils.cs" />
<Compile Include="TShock.cs" />
Expand Down

0 comments on commit f3e33b7

Please sign in to comment.