summaryrefslogtreecommitdiff
path: root/BCT/TranslationPlugins
diff options
context:
space:
mode:
authorGravatar t-espave <unknown>2011-08-03 16:52:20 -0700
committerGravatar t-espave <unknown>2011-08-03 16:52:20 -0700
commit026cd487e878ab5fa703010a79b18491683205d8 (patch)
treecf0162facbf28e9ee3d638feeaedf346a8844a05 /BCT/TranslationPlugins
parent33b007b03640da6618221406cf77df87e1ed0bc2 (diff)
(phone bct) moved some code to urihelper
Diffstat (limited to 'BCT/TranslationPlugins')
-rw-r--r--BCT/TranslationPlugins/PhoneControlsPlugin.cs22
1 files changed, 0 insertions, 22 deletions
diff --git a/BCT/TranslationPlugins/PhoneControlsPlugin.cs b/BCT/TranslationPlugins/PhoneControlsPlugin.cs
index e539b1b8..41eeaebb 100644
--- a/BCT/TranslationPlugins/PhoneControlsPlugin.cs
+++ b/BCT/TranslationPlugins/PhoneControlsPlugin.cs
@@ -125,28 +125,6 @@ namespace TranslationPlugins {
return mockBaseUri.MakeRelativeUri(mockStrippedUri).ToString();
}
- /// <summary>
- /// uri is a valid URI but possibly partial (incomplete ?arg= values) and overspecified (complete ?arg=values)
- /// This method returns a base URI
- /// </summary>
- /// <param name="uri"></param>
- /// <returns></returns>
- public static string getURIBase(string uri) {
- // I need to build an absolute URI just to call getComponents() ...
- Uri mockBaseUri = new Uri("mock://mock/", UriKind.RelativeOrAbsolute);
- Uri realUri;
- try {
- realUri = new Uri(uri, UriKind.Absolute);
- } catch (UriFormatException) {
- // uri string is relative
- realUri = new Uri(mockBaseUri, uri);
- }
-
- string str = realUri.GetComponents(UriComponents.Path | UriComponents.StrongAuthority | UriComponents.Scheme, UriFormat.UriEscaped);
- Uri mockStrippedUri = new Uri(str);
- return mockBaseUri.MakeRelativeUri(mockStrippedUri).ToString();
- }
-
//public static string getFullyQualifiedControlClass(string controlClass) {
// // TODO do an actual API discovery. The problem will be differencing 7.0 apps from 7.1 apps
// return "System.Windows.Controls." + controlClass;