[blam/gtk-builder] Get rid of a few warnings
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam/gtk-builder] Get rid of a few warnings
- Date: Tue, 8 Oct 2013 18:44:58 +0000 (UTC)
commit d58f97a1d14f863dfee26361e962607ddb369121
Author: Carlos Martín Nieto <cmn dwim me>
Date: Mon Oct 7 20:39:32 2013 +0200
Get rid of a few warnings
src/Channel.cs | 2 --
src/ChannelCollection.cs | 3 +--
src/ChannelList.cs | 2 +-
src/Dialogs.cs | 1 -
src/UnreadNotification.cs | 2 +-
5 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/Channel.cs b/src/Channel.cs
index a3d50c3..ab12bc3 100644
--- a/src/Channel.cs
+++ b/src/Channel.cs
@@ -31,7 +31,6 @@ namespace Imendio.Blam {
bool MarkAsRead();
Item GetItem(string id);
void Setup();
- event PropertyChangedEventHandler PropertyChanged;
void RemoveItems();
Task<bool> RefreshAsync();
}
@@ -275,7 +274,6 @@ namespace Imendio.Blam {
break;
default:
throw new InvalidOperationException("Item changed in unexpected way.
Shouldn't happen");
- break;
}
}
diff --git a/src/ChannelCollection.cs b/src/ChannelCollection.cs
index 2fdf072..5afd1ee 100644
--- a/src/ChannelCollection.cs
+++ b/src/ChannelCollection.cs
@@ -213,7 +213,7 @@ namespace Imendio.Blam {
}
- public async void Add(ChannelGroup group, IChannel channel)
+ public void Add(ChannelGroup group, IChannel channel)
{
group.Add(channel);
channel.PropertyChanged += ChannelChanged;
@@ -225,7 +225,6 @@ namespace Imendio.Blam {
void ChannelChanged(object sender, PropertyChangedEventArgs args)
{
- IChannel channel = (IChannel)sender;
MarkAsDirty();
if (PropertyChanged != null)
diff --git a/src/ChannelList.cs b/src/ChannelList.cs
index fafd99a..1a0481e 100644
--- a/src/ChannelList.cs
+++ b/src/ChannelList.cs
@@ -293,7 +293,7 @@ namespace Imendio.Blam {
}
- async void DragDataReceivedHandler(object o, DragDataReceivedArgs args)
+ void DragDataReceivedHandler(object o, DragDataReceivedArgs args)
{
TreePath path;
TreeViewDropPosition pos;
diff --git a/src/Dialogs.cs b/src/Dialogs.cs
index 33aa394..13ee5fd 100644
--- a/src/Dialogs.cs
+++ b/src/Dialogs.cs
@@ -204,7 +204,6 @@ namespace Imendio.Blam {
{
[Widget] Gtk.Dialog addGroupDialog = null;
[Widget] Gtk.Entry groupName = null;
- [Widget] Gtk.Button ok = null;
Application mApp = null;
diff --git a/src/UnreadNotification.cs b/src/UnreadNotification.cs
index 4400395..35bbdf0 100644
--- a/src/UnreadNotification.cs
+++ b/src/UnreadNotification.cs
@@ -17,7 +17,7 @@ namespace Imendio.Blam
note.IconName = "blam";
note.Summary = Catalog.GetString("Feeds refreshed");
note.Urgency = Urgency.Normal;
- } catch(Exception e){
+ } catch(Exception){
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]