Remove unused code
This commit is contained in:
parent
6fbfbee84c
commit
4a4aade9bf
|
@ -14,28 +14,15 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using Gtk;
|
||||
using SparkleLib;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
using Gtk;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
public static class SparkleUIHelpers {
|
||||
|
||||
// Creates an MD5 hash of input
|
||||
public static string GetMD5 (string s)
|
||||
{
|
||||
MD5 md5 = new MD5CryptoServiceProvider ();
|
||||
Byte[] bytes = ASCIIEncoding.Default.GetBytes (s);
|
||||
Byte[] encodedBytes = md5.ComputeHash (bytes);
|
||||
return BitConverter.ToString (encodedBytes).ToLower ().Replace ("-", "");
|
||||
}
|
||||
|
||||
|
||||
// Looks up an icon from the system's theme
|
||||
public static Gdk.Pixbuf GetIcon (string name, int size)
|
||||
{
|
||||
|
|
|
@ -36,8 +36,7 @@ namespace SparkleShare {
|
|||
Width = size;
|
||||
Height = size;
|
||||
|
||||
BitmapSource spinner_gallery =
|
||||
SparkleUIHelpers.GetImageSource ("process-working-22");
|
||||
BitmapSource spinner_gallery = SparkleUIHelpers.GetImageSource ("process-working-22");
|
||||
|
||||
int frames_in_width = spinner_gallery.PixelWidth / size;
|
||||
int frames_in_height = spinner_gallery.PixelHeight / size;
|
||||
|
@ -50,10 +49,8 @@ namespace SparkleShare {
|
|||
for (int y = 0; y < frames_in_height; y++) {
|
||||
for (int x = 0; x < frames_in_width; x++) {
|
||||
if (!(y == 0 && x == 0)) {
|
||||
CroppedBitmap crop = new CroppedBitmap (
|
||||
spinner_gallery,
|
||||
new Int32Rect (size * x, size * y, size, size)
|
||||
);
|
||||
CroppedBitmap crop = new CroppedBitmap (spinner_gallery,
|
||||
new Int32Rect (size * x, size * y, size, size));
|
||||
|
||||
this.images [i] = new Image ();
|
||||
this.images [i].Source = crop;
|
||||
|
|
Loading…
Reference in a new issue