From f1e1d4077814ebd31977a3c5499c2390e66a4f08 Mon Sep 17 00:00:00 2001 From: Mehmet Date: Wed, 16 Oct 2019 18:28:50 +0100 Subject: [PATCH] Remove redundant codes and variables. --- README.md | 4 ---- samples/SmokeTest/Source/Assets/SmokeTest/MainGui.cs | 1 - .../GooglePlayGames/BasicApi/Multiplayer/Invitation.cs | 4 ---- .../GooglePlayGames/BasicApi/Multiplayer/TurnBasedMatch.cs | 3 --- .../GooglePlayGames/ISocialPlatform/PlayGamesPlatform.cs | 7 ------- 5 files changed, 19 deletions(-) diff --git a/README.md b/README.md index 08f8e5a65..84f17418e 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,6 @@ _Unity® is a trademark of Unity Technologies._ _iOS is a trademark of Apple, Inc._ -## New Plugin Is Available -A new Google Play Games plugin is now publicly available. Please go to [the announcement post](https://github.com/playgameservices/play-games-plugin-for-unity/issues/2687) to learn more about it. - - ## Overview The Google Play Games plugin for Unity allows you to access the Google Play Games diff --git a/samples/SmokeTest/Source/Assets/SmokeTest/MainGui.cs b/samples/SmokeTest/Source/Assets/SmokeTest/MainGui.cs index 90b3a6d0d..0436f20d9 100644 --- a/samples/SmokeTest/Source/Assets/SmokeTest/MainGui.cs +++ b/samples/SmokeTest/Source/Assets/SmokeTest/MainGui.cs @@ -63,7 +63,6 @@ public class MainGui : MonoBehaviour, RealTimeMultiplayerListener private string idToken = ""; private string authCode = ""; private bool loadedFriends = false; - private bool loadingFriends = false; private volatile TurnBasedMatch mMatch = null; diff --git a/source/PluginDev/Assets/GooglePlayGames/BasicApi/Multiplayer/Invitation.cs b/source/PluginDev/Assets/GooglePlayGames/BasicApi/Multiplayer/Invitation.cs index f0445b841..38b0210db 100644 --- a/source/PluginDev/Assets/GooglePlayGames/BasicApi/Multiplayer/Invitation.cs +++ b/source/PluginDev/Assets/GooglePlayGames/BasicApi/Multiplayer/Invitation.cs @@ -28,10 +28,6 @@ namespace GooglePlayGames.BasicApi.Multiplayer /// public class Invitation { - static readonly DateTime UnixEpoch = - new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); - - public enum InvType { RealTime, diff --git a/source/PluginDev/Assets/GooglePlayGames/BasicApi/Multiplayer/TurnBasedMatch.cs b/source/PluginDev/Assets/GooglePlayGames/BasicApi/Multiplayer/TurnBasedMatch.cs index 8de267d6b..84f71c28b 100644 --- a/source/PluginDev/Assets/GooglePlayGames/BasicApi/Multiplayer/TurnBasedMatch.cs +++ b/source/PluginDev/Assets/GooglePlayGames/BasicApi/Multiplayer/TurnBasedMatch.cs @@ -28,9 +28,6 @@ namespace GooglePlayGames.BasicApi.Multiplayer /// public class TurnBasedMatch { - static readonly DateTime UnixEpoch = - new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); - public enum MatchStatus { Active, diff --git a/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesPlatform.cs b/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesPlatform.cs index 2f85ee194..8a15bd5cb 100644 --- a/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesPlatform.cs +++ b/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesPlatform.cs @@ -659,13 +659,6 @@ public void ReportProgress(string achievementID, double progress, Action c mClient.LoadAchievements(ach => { - if (ach == null) - { - GooglePlayGames.OurUtils.Logger.e("Unable to load achievements"); - callback.Invoke(false); - return; - } - for (int i = 0; i < ach.Length; i++) { if (ach[i].Id == achievementID)