aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arctica-greeter.vala9
-rw-r--r--src/prompt-box.vala2
2 files changed, 6 insertions, 5 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 309503b..ecbcc01 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -549,9 +549,9 @@ public class ArcticaGreeter : Object
var time_post = GLib.get_monotonic_time ();
var time_diff = time_post - time_pre;
assert (0 <= time_diff);
- var time_diff_sec = time_diff / 1000000;
- var time_diff_msec = time_diff / 1000;
- var time_diff_usec = time_diff % 1000000;
+ // var time_diff_sec = time_diff / 1000000;
+ // var time_diff_msec = time_diff / 1000;
+ // var time_diff_usec = time_diff % 1000000;
// debug ("Time passed: %" + int64.FORMAT + " s, %" + int64.FORMAT + " ms, %" + int64.FORMAT + " us", time_diff_sec, time_diff_msec, time_diff_usec);
}
@@ -1015,6 +1015,9 @@ public class ArcticaGreeter : Object
*
* We want to do this before creating the actual greeter, since the
* latter is using AGSettings quite extensively.
+ *
+ * This will throw a Vala warning: "local variable `agsettings' declared
+ * but never used". Which can be ignored.
*/
var agsettings = new AGSettings ();
diff --git a/src/prompt-box.vala b/src/prompt-box.vala
index a5d44bb..ffce61c 100644
--- a/src/prompt-box.vala
+++ b/src/prompt-box.vala
@@ -208,7 +208,6 @@ public class PromptBox : FadableBox
debug ("Internal error loading font style (%s, %dpt): %s", font_family, font_size+2, e.message);
}
- var agsettings = new AGSettings ();
try
{
var color_provider = new Gtk.CssProvider ();
@@ -917,7 +916,6 @@ private class ActiveIndicator : Gtk.Image
var rowstride = this.pixbuf_inverted_.get_rowstride ();
var col_bytes = (((channels * sample_size) + 7) / 8);
- var row_bytes = (this.pixbuf_inverted_.width * col_bytes);
unowned var pixels = this.pixbuf_inverted_.get_pixels ();
assert (pixels != null);
size_t color_bits = channels;