summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2017-01-12 10:17:04 +0900
committerWonYoung Choi <wy80.choi@samsung.com>2017-01-12 10:17:04 +0900
commit45de399e59f79267645d7eb8ac4c206b139164ff (patch)
treeadd980b574038407c383f19fa42cad6b87c48bf9
parent14c4d2e8f8f1eb51b92ec6b31be4303256b594e2 (diff)
downloadxamarin-forms-45de399e59f79267645d7eb8ac4c206b139164ff.tar.gz
xamarin-forms-45de399e59f79267645d7eb8ac4c206b139164ff.tar.bz2
xamarin-forms-45de399e59f79267645d7eb8ac4c206b139164ff.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
}
}