[gnome-robots] remove dead code
- From: Andrey Kutejko <akutejko src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-robots] remove dead code
- Date: Tue, 6 Oct 2020 19:31:41 +0000 (UTC)
commit b62fa86b09aac982dc633ab8f23b82b281b3d793
Author: Andrey Kutejko <andy128k gmail com>
Date: Mon Aug 31 20:35:18 2020 +0200
remove dead code
src/preimage.vala | 13 -------------
src/properties.vala | 34 ----------------------------------
2 files changed, 47 deletions(-)
---
diff --git a/src/preimage.vala b/src/preimage.vala
index 554c734..2e2083e 100644
--- a/src/preimage.vala
+++ b/src/preimage.vala
@@ -26,7 +26,6 @@ public class GamesPreimage {
private int height = 0;
private Handle? rsvg_handle = null;
- private FontOptions? font_options;
/* raster pixbuf data */
private Pixbuf? pixbuf;
@@ -63,13 +62,6 @@ public class GamesPreimage {
}
}
- /**
- * Turns on antialising of preimage, if it contains an SVG image.
- */
- public void set_font_options (owned FontOptions? font_options) {
- this.font_options = (owned) font_options;
- }
-
/**
* @width: the desired width
* @height: the desired height
@@ -175,11 +167,6 @@ public class GamesPreimage {
if (!scalable)
return;
- if (font_options != null) {
- cr.set_antialias (font_options.get_antialias ());
- cr.set_font_options (font_options);
- }
-
Cairo.Matrix matrix = Cairo.Matrix.identity ();
matrix.scale (xzoom, yzoom);
matrix.translate (xoffset, yoffset);
diff --git a/src/properties.vala b/src/properties.vala
index d3d8109..aafe377 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -458,37 +458,3 @@ public bool properties_sound () {
return properties.sound;
}
-
-/**
- * properties_show_toolbar
- *
- * Description:
- * returns toolbar setting
- *
- * Returns:
- * TRUE if splats are selected
- **/
-public bool properties_show_toolbar () {
- return properties.show_toolbar;
-}
-
-/**
- * properties_set_config
- * @n: config number
- *
- * Description:
- * sets the current configuration
- *
- * Returns:
- * TRUE if successful, FALSE otherwise
- **/
-public bool properties_set_config (int n) {
- if (n >= game_configs.count ())
- return false;
-
- game_configs.set_current_index ((uint)n);
- properties.selected_config = n;
-
- return true;
-}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]