Skip to content

Commit

Permalink
removed timer.cs, tuple.cs which was there for older .net versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Oct 28, 2024
1 parent 365a21e commit b05a6a8
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 178 deletions.
4 changes: 3 additions & 1 deletion src/Api/PubnubApi/Pubnub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ static Pubnub()
var assembly = typeof(Pubnub).GetTypeInfo().Assembly;
var assemblyName = new AssemblyName(assembly.FullName);
string assemblyVersion = assemblyName.Version.ToString();
Version = string.Format(CultureInfo.InvariantCulture, "{0}CSharp{1}", PNPlatform.Get(), assemblyVersion);
var targetFramework = assembly.GetCustomAttribute<System.Runtime.Versioning.TargetFrameworkAttribute>()?.FrameworkDisplayName?.Replace(".",string.Empty).Replace(" ", string.Empty);

Version = string.Format(CultureInfo.InvariantCulture, "{0}/CSharp/{1}", targetFramework??"UNKNOWN", assemblyVersion);
}

#if UNITY
Expand Down
115 changes: 0 additions & 115 deletions src/Api/PubnubApi/Timer.cs

This file was deleted.

53 changes: 0 additions & 53 deletions src/Api/PubnubApi/Tuple.cs

This file was deleted.

3 changes: 0 additions & 3 deletions src/Api/PubnubApiPCL/PubnubApiPCL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,6 @@
<Compile Include="..\PubnubApi\Security\SecureMessage.cs">
<Link>Security\SecureMessage.cs</Link>
</Compile>
<Compile Include="..\PubnubApi\Timer.cs">
<Link>Timer.cs</Link>
</Compile>
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' ">
Expand Down
3 changes: 0 additions & 3 deletions src/Api/PubnubApiUWP/PubnubApiUWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,6 @@
<Compile Include="..\PubnubApi\Security\SecureMessage.cs">
<Link>Security\SecureMessage.cs</Link>
</Compile>
<Compile Include="..\PubnubApi\Timer.cs">
<Link>Timer.cs</Link>
</Compile>
<None Include="..\PubnubApi\LICENSE.txt" Link="LICENSE.txt" Pack="true" PackagePath="" />
<EmbeddedResource Include="Properties\PubnubApiUWP.rd.xml" />
</ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Api/PubnubApiUnity/PubnubApiUnity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,6 @@
<Compile Include="..\PubnubApi\Security\SecureMessage.cs">
<Link>Security\SecureMessage.cs</Link>
</Compile>
<Compile Include="..\PubnubApi\Timer.cs">
<Link>Timer.cs</Link>
</Compile>
</ItemGroup>

<PropertyGroup>
Expand Down

0 comments on commit b05a6a8

Please sign in to comment.