Skip to content

Commit

Permalink
Fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Bengston committed Jul 9, 2017
1 parent 3f07063 commit 9b67f2a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Plugins/Editor/WakaTime.cs
Expand Up @@ -22,7 +22,7 @@ namespace Bengsfort.Unity
using UnityEditor.SceneManagement;

[InitializeOnLoad]
public class WakaTime
public static class WakaTime
{
/// <summary>
/// The current plugin version.
Expand Down Expand Up @@ -251,11 +251,6 @@ static void OnSceneOpened(Scene scene, OpenSceneMode mode)
/// <summary>
/// Send a heartbeat every time a scene is closed.
/// </summary>
/// <remarks>
/// @TODO: the send heartbeat needs to be modified to accept a scene overload.
/// If it's overloaded, it should use that instead Then this can switch to
/// OnSceneClosed instead of Closing.
/// </remarks>
static void OnSceneClosing(Scene scene, bool removingScene)
{
PostHeartbeat();
Expand Down Expand Up @@ -283,7 +278,6 @@ static string FormatApiUrl(string path)
/// API Key is validated by sending a GET for the current user using the
/// provided key. If it is a valid key, it shouldn't return an error.
/// </remarks>
/// <param name="key">The API key.</param>
static void GetCurrentUser()
{
// If the user has deliberatly entered nothing, then reset the key
Expand Down Expand Up @@ -1001,6 +995,9 @@ static string GetCurrentBranch()
catch
{
// silence is golden
// There shouldn't be any errors here since we are redirecting
// standard error
UnityEngine.Debug.LogError("<WakaTime> There was an error getting git branch.");
}
finally
{
Expand Down

0 comments on commit 9b67f2a

Please sign in to comment.