GNOME Bugzilla – Bug 593902
Warning on DBus class being internal
Last modified: 2018-02-13 11:44:30 UTC
If I mark a class implementing a D-Bus service, "internal" I get warning from valac for each of it's public methods to be unused. E.g [DBus (name = "org.gnome.Rygel")] public class Rygel.DBusService : Object { ... public void Shutdown () { this.main.exit (0); } } valac gives me this warning: rygel-dbus-service.vala:52.5-52.24: warning: method `Rygel.DBusService.Shutdown' never used public void Shutdown () { ^^^^^^^^^^^^^^^^^^^^
This bug was reported against a version which is not supported any more. Developers are no longer working on this version so there will not be any bug fixes for it. Can you please check again if the issue you reported here still happens in a recent version of GNOME and update this report by adding a comment and adjusting the 'Version' field? Again thank you for reporting this and sorry that it could not be fixed for the version you originally used here. Without feedback this report will be closed as INCOMPLETE after 6 weeks.
Felipe: Such comments don't make much sense if reporter == developer.
Actually, they do. One might report the issue and forget about it. As for this bug, I confirm it's still present in latest version.
changing the status to NEW, since the bug still and is confirmed. thanks Jiří.
Confirming it's still an issue, but lowering the priority.
Created attachment 368302 [details] [review] Don't warn about unused internal methods which are meant to be visible on DBus
Review of attachment 368302 [details] [review]: Works as advertised, thanks.
Attachment 368302 [details] pushed as f15f9f8 - Don't warn about unused internal methods which are meant to be visible on DBus