[SystemInfo] Remove build warnings 57/150857/2
authorWonyoung Choi <wy80.choi@samsung.com>
Tue, 19 Sep 2017 02:41:06 +0000 (11:41 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Tue, 19 Sep 2017 02:45:53 +0000 (02:45 +0000)
Suppress CS0618 warnings that is caused by obsolete of SystemInfo.
Remove unnecessary EditorBrowable attributes because hiding APIs is
needed for only public classes or methods.

Change-Id: I11643b111800078362fd53ecf297c16b0ced7c8d

src/Tizen.System.Information/Common/Information.cs [changed mode: 0755->0644]
src/Tizen.System.Information/Common/InformationErrorFactory.cs [changed mode: 0755->0644]
src/Tizen.System.Information/RuntimeInfo/Enumerations.cs [changed mode: 0755->0644]
src/Tizen.System.Information/RuntimeInfo/RuntimeInfo.cs [changed mode: 0755->0644]
src/Tizen.System.Information/RuntimeInfo/RuntimeInfoEventHandler.cs [changed mode: 0755->0644]
src/Tizen.System.Information/RuntimeInfo/TvProductHelper.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 5ec9dc0..06ddf37
@@ -16,8 +16,6 @@
 
 using System;
 using System.Collections.Generic;
-using System.ComponentModel;
-using System.IO;
 
 namespace Tizen.System
 {
@@ -81,7 +79,6 @@ namespace Tizen.System
             [RuntimeInfoKey.AudioJackConnector] = RuntimeInfoStringKeyAudioJackType
         };
 
-        [EditorBrowsable(EditorBrowsableState.Never)]
         private static bool ConvertStringToRuntimeInfoKey(string key, out RuntimeInfoKey feature)
         {
             string filteredKey = key.StartsWith(HttpPrefix) ? key.Substring(HttpPrefix.Length) : key;
@@ -90,7 +87,6 @@ namespace Tizen.System
             return StringEnumMapping.TryGetValue(filteredKey, out feature);
         }
 
-        [EditorBrowsable(EditorBrowsableState.Never)]
         private static bool TryGetRuntimeInfoValue<T>(RuntimeInfoKey key, out T value)
         {
             value = default(T);
@@ -104,7 +100,7 @@ namespace Tizen.System
             return RuntimeInfo.TryGetValue<T>(key, out value);
         }
 
-        [EditorBrowsable(EditorBrowsableState.Never)]
+#pragma warning disable CS0618 // Type or member is obsolete
         private static bool TryGetSystemInfoValue<T>(string key, out T value)
         {
             value = default(T);
@@ -123,6 +119,7 @@ namespace Tizen.System
 
             return SystemInfo.TryGetValue<T>(key, out value);
         }
+#pragma warning restore CS0618 // Type or member is obsolete
 
         /// <summary>
         /// Gets the value of the feature.
old mode 100755 (executable)
new mode 100644 (file)
index 906961d..e7ad717
 
 using System;
 using System.IO;
-using System.ComponentModel;
 using Tizen.Internals.Errors;
 
 namespace Tizen.System
 {
-    [EditorBrowsable(EditorBrowsableState.Never)]
     internal enum InformationError
     {
         None = ErrorCode.None,
@@ -34,7 +32,6 @@ namespace Tizen.System
         NoData = ErrorCode.NoData
     }
 
-    [EditorBrowsable(EditorBrowsableState.Never)]
     internal static class InformationErrorFactory
     {
         internal const string LogTag = "Tizen.System.Information";
old mode 100755 (executable)
new mode 100644 (file)
index ea0281d..dfab9f1
 * limitations under the License.
 */
 
-using System.ComponentModel;
-
 namespace Tizen.System
 {
-    [EditorBrowsable(EditorBrowsableState.Never)]
     /// <summary>
     /// Enumeration for the runtime information key.
     /// </summary>
old mode 100755 (executable)
new mode 100644 (file)
index 9ce011a..ba4a70a
 
 using System;
 using System.Collections.Generic;
-using System.IO;
-using System.ComponentModel;
 
 namespace Tizen.System
 {
-    [EditorBrowsable(EditorBrowsableState.Never)]
     internal static class RuntimeInfo
     {
         private static RuntimeInfoEventHandler BluetoothEnabled = new RuntimeInfoEventHandler(RuntimeInfoKey.Bluetooth);
old mode 100755 (executable)
new mode 100644 (file)
index 733e0f1..973957d
 */
 
 using System;
-using System.ComponentModel;
 
 namespace Tizen.System
 {
-    [EditorBrowsable(EditorBrowsableState.Never)]
     internal class RuntimeInfoEventHandler
     {
         private RuntimeInfoKey Key;
old mode 100755 (executable)
new mode 100644 (file)
index df9e3a2..ef5f846
 
 using System;
 using System.Collections.Generic;
-using System.ComponentModel;
 
 namespace Tizen.System
 {
-    [EditorBrowsable(EditorBrowsableState.Never)]
     internal static class TvProductHelper
     {
         private static int is_TV_product = -1;
@@ -52,7 +50,9 @@ namespace Tizen.System
 
             if (is_TV_product == -1)
             {
+#pragma warning disable CS0618 // Type or member is obsolete
                 is_key_existed = SystemInfo.TryGetValue<string>("http://com.samsung/build_config/product_type", out profile);
+#pragma warning restore CS0618 // Type or member is obsolete
                 if (is_key_existed && String.Compare(profile, "TV") == 0)
                 {
                     is_TV_product = 1;