summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2017-01-12 10:17:04 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:26 +0900
commitb093edd90d7e4191504cbb4d8436b57496477c01 (patch)
tree0bc679598490dfbe7f55ea0633871a29f87875a0
parent8dc2af5faf182aa7d25acb3c6cf0210845704625 (diff)
downloadxamarin-forms-b093edd90d7e4191504cbb4d8436b57496477c01.tar.gz
xamarin-forms-b093edd90d7e4191504cbb4d8436b57496477c01.tar.bz2
xamarin-forms-b093edd90d7e4191504cbb4d8436b57496477c01.zip
Remove NET45 code
Change-Id: I90202d17b86d0e6e8449048367d422a790fff589
-rw-r--r--Xamarin.Forms.Platform.Tizen/Forms.cs2
-rw-r--r--Xamarin.Forms.Platform.Tizen/ResourcePath.cs15
-rw-r--r--Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs2
3 files changed, 0 insertions, 19 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Forms.cs b/Xamarin.Forms.Platform.Tizen/Forms.cs
index 453bab82..da2d98d3 100644
--- a/Xamarin.Forms.Platform.Tizen/Forms.cs
+++ b/Xamarin.Forms.Platform.Tizen/Forms.cs
@@ -126,7 +126,6 @@ namespace Xamarin.Forms.Platform.Tizen
//TO-DO: Need to change to Tizen.
Device.OS = TargetPlatform.Other;
-#if !NET45
// In .NETCore, AppDomain feature is not supported.
// The list of assemblies returned by AppDomain.GetAssemblies() method should be registered manually.
// The assembly of the executing application and referenced assemblies of it are added into the list here.
@@ -147,7 +146,6 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
}
-#endif
Device.PlatformServices = new TizenPlatformServices(); ;
if (Device.info != null)
diff --git a/Xamarin.Forms.Platform.Tizen/ResourcePath.cs b/Xamarin.Forms.Platform.Tizen/ResourcePath.cs
index d2387793..918a4794 100644
--- a/Xamarin.Forms.Platform.Tizen/ResourcePath.cs
+++ b/Xamarin.Forms.Platform.Tizen/ResourcePath.cs
@@ -1,7 +1,4 @@
using System.IO;
-#if NET45
-using System.Reflection;
-#endif
using AppFW = Tizen.Applications;
@@ -26,18 +23,6 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
-#if NET45
- string exedir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
- // ind resource in "exepath/../res/"
- {
- string resPath = exedir + "/../res/" + res;
- if (File.Exists(resPath))
- {
- return resPath;
- }
- }
-#endif
-
return res;
}
}
diff --git a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
index db7ee1de..bb7183a9 100644
--- a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
+++ b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
@@ -192,7 +192,6 @@ namespace Xamarin.Forms.Platform.Tizen
#endregion
-#if !NET45
// In .NETCore, AppDomain is not supported. The list of the assemblies should be generated manually.
internal class AppDomain
{
@@ -226,7 +225,6 @@ namespace Xamarin.Forms.Platform.Tizen
return _assemblies.ToArray();
}
}
-#endif
}
}