[gnome-games/wip/exalm/psx-cleanup: 4/10] input-capabilities: Remove gamepad methods



commit 6fa003eb30a51c5e54827800dca11ec5226d809c
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Feb 10 15:45:44 2020 +0500

    input-capabilities: Remove gamepad methods
    
    They are unused and their original purpose has been replaced with a core
    option.

 plugins/libretro/src/libretro-input-capabilities.vala | 8 --------
 plugins/ms-dos/src/ms-dos-input-capabilities.vala     | 8 --------
 src/core/input-capabilities.vala                      | 2 --
 3 files changed, 18 deletions(-)
---
diff --git a/plugins/libretro/src/libretro-input-capabilities.vala 
b/plugins/libretro/src/libretro-input-capabilities.vala
index 7b66cf62..8c84298c 100644
--- a/plugins/libretro/src/libretro-input-capabilities.vala
+++ b/plugins/libretro/src/libretro-input-capabilities.vala
@@ -1,14 +1,6 @@
 // This file is part of GNOME Games. License: GPL-3.0+.
 
 public class Games.LibretroInputCapabilities : Object, InputCapabilities {
-       public bool get_allow_classic_gamepads () throws Error {
-               return true;
-       }
-
-       public bool get_allow_analog_gamepads () throws Error {
-               return true;
-       }
-
        public bool get_allow_keyboard_mode () {
                return true;
        }
diff --git a/plugins/ms-dos/src/ms-dos-input-capabilities.vala 
b/plugins/ms-dos/src/ms-dos-input-capabilities.vala
index 1a361e6f..ff093ab4 100644
--- a/plugins/ms-dos/src/ms-dos-input-capabilities.vala
+++ b/plugins/ms-dos/src/ms-dos-input-capabilities.vala
@@ -1,14 +1,6 @@
 // This file is part of GNOME Games. License: GPL-3.0+.
 
 public class Games.MsDosInputCapabilities : Object, InputCapabilities {
-       public bool get_allow_classic_gamepads () throws Error {
-               return true;
-       }
-
-       public bool get_allow_analog_gamepads () throws Error {
-               return true;
-       }
-
        public bool get_allow_keyboard_mode () {
                return true;
        }
diff --git a/src/core/input-capabilities.vala b/src/core/input-capabilities.vala
index d62513d9..4aa3cc9b 100644
--- a/src/core/input-capabilities.vala
+++ b/src/core/input-capabilities.vala
@@ -1,7 +1,5 @@
 // This file is part of GNOME Games. License: GPL-3.0+.
 
 public interface Games.InputCapabilities : Object {
-       public abstract bool get_allow_classic_gamepads () throws Error;
-       public abstract bool get_allow_analog_gamepads () throws Error;
        public abstract bool get_allow_keyboard_mode ();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]