[WebView] Remove unused API (#591)
authoryounghajung <35090305+younghajung@users.noreply.github.com>
Tue, 4 Dec 2018 06:59:14 +0000 (15:59 +0900)
committerdjmixkim <djmix.kim@samsung.com>
Tue, 4 Dec 2018 06:59:14 +0000 (15:59 +0900)
This patch removes unused API from SmartCallbackArgs.
It will be re-landed when it is needed.

Signed-off-by: yh106.jung <yh106.jung@samsung.com>
src/Tizen.WebView/Tizen.WebView/SmartCallbackArgs.cs

index 0701a10..e857610 100644 (file)
@@ -33,50 +33,6 @@ namespace Tizen.WebView
         }
 
         /// <summary>
-        /// Gets the argument as an integer type.
-        /// </summary>
-        /// <returns>Argument as an integer type.</returns>
-        /// <since_tizen> 4 </since_tizen>
-        public int GetAsInteger()
-        {
-            if (_arg == IntPtr.Zero)
-            {
-                return 0;
-            }
-            return Marshal.ReadInt32(_arg, 0);
-        }
-
-        /// <summary>
-        /// Gets the argument as a double type.
-        /// </summary>
-        /// <returns>Argument as a double type.</returns>
-        /// <since_tizen> 4 </since_tizen>
-        public double GetAsDouble()
-        {
-            if (_arg == IntPtr.Zero)
-            {
-                return 0d;
-            }
-            double[] ret = new double[1];
-            Marshal.Copy(_arg, ret, 0, 1);
-            return ret[0];
-        }
-
-        /// <summary>
-        /// Gets the argument as a boolean type.
-        /// </summary>
-        /// <returns>Argument as a boolean type.</returns>
-        /// <since_tizen> 4 </since_tizen>
-        public bool GetAsBoolean()
-        {
-            if (_arg == IntPtr.Zero)
-            {
-                return false;
-            }
-            return Marshal.ReadByte(_arg) != (byte)0;
-        }
-
-        /// <summary>
         /// Gets the argument as a string type.
         /// </summary>
         /// <returns>Argument as a string type.</returns>