OSDN Git Service

使用されていないパラメータを削除 (IDE0060)
authorKimura Youichi <kim.upsilon@bucyou.net>
Wed, 28 Aug 2019 18:18:20 +0000 (03:18 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Wed, 28 Aug 2019 19:26:40 +0000 (04:26 +0900)
OpenTween/Connection/Networking.cs
OpenTween/NativeMethods.cs
OpenTween/Tween.cs

index 2fb64d4..40bf922 100644 (file)
@@ -134,7 +134,7 @@ namespace OpenTween.Connection
             Networking.ProxyType = proxyType;
             Networking.Proxy = proxy;
 
-            NativeMethods.SetProxy(proxyType, proxyAddress, proxyPort, proxyUser, proxyPassword);
+            NativeMethods.SetProxy(proxyType, proxyAddress, proxyPort);
 
             OnWebProxyChanged(EventArgs.Empty);
         }
index e7557e7..d6a5c9f 100644 (file)
@@ -150,9 +150,7 @@ namespace OpenTween
             => SelectItem(listView, -1 /* all items */);
 
         #region "画面ブリンク用"
-        public static bool FlashMyWindow(IntPtr hwnd,
-            FlashSpecification flashType,
-            int flashCount)
+        public static bool FlashMyWindow(IntPtr hwnd, int flashCount)
         {
             var fInfo = new FLASHWINFO();
             fInfo.cbSize = Convert.ToInt32(Marshal.SizeOf(fInfo));
@@ -377,7 +375,7 @@ namespace OpenTween
                 throw new Win32Exception();
         }
 
-        public static void SetProxy(ProxyType pType, string host, int port, string username, string password)
+        public static void SetProxy(ProxyType pType, string host, int port)
         {
             string proxy = null;
             switch (pType)
index 1032221..7bf3728 100644 (file)
@@ -1859,7 +1859,7 @@ namespace OpenTween
             //mentions新着時に画面ブリンク
             if (!_initial && SettingManager.Common.BlinkNewMentions && newMentions && Form.ActiveForm == null)
             {
-                NativeMethods.FlashMyWindow(this.Handle, NativeMethods.FlashSpecification.FlashTray, 3);
+                NativeMethods.FlashMyWindow(this.Handle, 3);
             }
         }
 
@@ -1985,7 +1985,7 @@ namespace OpenTween
             }
         }
 
-        private void ColorizeList(ListViewItem Item, PostClass post, int Index)
+        private void ColorizeList(ListViewItem Item, PostClass post)
         {
             //Index:更新対象のListviewItem.Index。Colorを返す。
             //-1は全キャッシュ。Colorは返さない(ダミーを戻す)
@@ -4728,7 +4728,7 @@ namespace OpenTween
             var tab = this._statuses.Tabs[tabPage.Text];
             try
             {
-                e.Item = this.CreateItem(tab, tab[e.ItemIndex], e.ItemIndex);
+                e.Item = this.CreateItem(tab, tab[e.ItemIndex]);
             }
             catch (Exception)
             {
@@ -4758,7 +4758,7 @@ namespace OpenTween
             var tab = this.CurrentTab;
             var posts = tabInfo[startIndex, endIndex]; //配列で取得
             var listItems = Enumerable.Range(0, cacheLength)
-                .Select(x => this.CreateItem(tab, posts[x], startIndex + x))
+                .Select(x => this.CreateItem(tab, posts[x]))
                 .ToArray();
 
             var listCache = new ListViewItemCache
@@ -4778,7 +4778,7 @@ namespace OpenTween
         private void PurgeListViewItemCache()
             => Interlocked.Exchange(ref this._listItemCache, null);
 
-        private ListViewItem CreateItem(TabModel tab, PostClass Post, int Index)
+        private ListViewItem CreateItem(TabModel tab, PostClass Post)
         {
             var mk = new StringBuilder();
             //if (Post.IsDeleted) mk.Append("×");
@@ -4822,7 +4822,7 @@ namespace OpenTween
             ChangeItemStyleRead(read, itm, Post, null);
 
             if (tab.TabName == this.CurrentTabName)
-                this.ColorizeList(itm, Post, Index);
+                this.ColorizeList(itm, Post);
 
             return itm;
         }