cleanup unused code

This commit is contained in:
Hylke Bons 2011-07-15 02:10:36 +01:00
parent 52edee5585
commit c8c8514d83
6 changed files with 8 additions and 39 deletions

View file

@ -20,7 +20,6 @@ SOURCES = \
SparkleEntry.cs \ SparkleEntry.cs \
SparkleEventLog.cs \ SparkleEventLog.cs \
SparkleEventLogController.cs \ SparkleEventLogController.cs \
SparkleInvitation.cs \
SparkleLinController.cs \ SparkleLinController.cs \
SparkleSetup.cs \ SparkleSetup.cs \
SparkleSetupController.cs \ SparkleSetupController.cs \

View file

@ -68,8 +68,8 @@ namespace SparkleShare {
Controller.NewVersionEvent += delegate (string new_version) { Controller.NewVersionEvent += delegate (string new_version) {
Application.Invoke (delegate { Application.Invoke (delegate {
this.updates.Markup = String.Format ("<span font_size='small' fgcolor='#f57900'>{0}: {1}</span>", this.updates.Markup = String.Format ("<span font_size='small' fgcolor='#f57900'>{0}</span>",
_("A newer version is available!"), new_version); String.Format (_("A newer version ({0}) is available!"), new_version));
this.updates.ShowAll (); this.updates.ShowAll ();
}); });
}; };

View file

@ -17,6 +17,7 @@
using Gtk; using Gtk;
// TODO: Remove with Gtk3
namespace SparkleShare { namespace SparkleShare {
public class SparkleEntry : Entry { public class SparkleEntry : Entry {
@ -33,7 +34,6 @@ namespace SparkleShare {
ClipboardPasted += delegate { OnEntered (); }; ClipboardPasted += delegate { OnEntered (); };
FocusOutEvent += delegate { FocusOutEvent += delegate {
if (Text.Equals ("") || Text == null) if (Text.Equals ("") || Text == null)
ExampleTextActive = true; ExampleTextActive = true;

View file

@ -1,5 +0,0 @@

View file

@ -59,15 +59,10 @@
</MonoDevelop> </MonoDevelop>
</ProjectExtensions> </ProjectExtensions>
<ItemGroup> <ItemGroup>
<Compile Include="SparkleAbout.cs" />
<Compile Include="SparkleAboutController.cs" />
<Compile Include="SparkleBubbles.cs" /> <Compile Include="SparkleBubbles.cs" />
<Compile Include="SparkleBubblesController.cs" /> <Compile Include="SparkleBubblesController.cs" />
<Compile Include="SparkleController.cs" /> <Compile Include="SparkleController.cs" />
<Compile Include="SparkleEntry.cs" /> <Compile Include="SparkleEntry.cs" />
<Compile Include="SparkleEventLog.cs" />
<Compile Include="SparkleEventLogController.cs" />
<Compile Include="SparkleInvitation.cs" />
<Compile Include="SparkleLinController.cs" /> <Compile Include="SparkleLinController.cs" />
<Compile Include="SparkleSetup.cs" /> <Compile Include="SparkleSetup.cs" />
<Compile Include="SparkleSetupController.cs" /> <Compile Include="SparkleSetupController.cs" />
@ -78,5 +73,9 @@
<Compile Include="SparkleStatusIconController.cs" /> <Compile Include="SparkleStatusIconController.cs" />
<Compile Include="SparkleUI.cs" /> <Compile Include="SparkleUI.cs" />
<Compile Include="SparkleUIHelpers.cs" /> <Compile Include="SparkleUIHelpers.cs" />
<Compile Include="SparkleEventLogController.cs" />
<Compile Include="SparkleEventLog.cs" />
<Compile Include="SparkleAboutController.cs" />
<Compile Include="SparkleAbout.cs" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -66,7 +66,6 @@ namespace SparkleShare {
}; };
// Show a bubble when there are new changes // Show a bubble when there are new changes
SparkleShare.Controller.NotificationRaised += delegate (string user_name, string user_email, SparkleShare.Controller.NotificationRaised += delegate (string user_name, string user_email,
string message, string repository_path) { string message, string repository_path) {
@ -98,30 +97,7 @@ namespace SparkleShare {
// TODO new SparkleBubble (title, subtext).Show (); // TODO new SparkleBubble (title, subtext).Show ();
}); });
}; };
}
SparkleShare.Controller.AvatarFetched += delegate {
Application.Invoke (delegate {
if (EventLog != null)
EventLog.UpdateEvents ();
});
};
SparkleShare.Controller.OnIdle += delegate {
Application.Invoke (delegate {
if (EventLog != null)
EventLog.UpdateEvents ();
});
};
SparkleShare.Controller.FolderListChanged += delegate {
Application.Invoke (delegate {
if (EventLog != null) {
EventLog.UpdateChooser ();
EventLog.UpdateEvents ();
}
});
};
}
// Runs the application // Runs the application
public void Run () public void Run ()