[gnome-builder] libide-code: cleanup symbol availability
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide-code: cleanup symbol availability
- Date: Tue, 12 Jul 2022 06:39:07 +0000 (UTC)
commit b987e44dda92c9e4c09d3724df5d57ef0356976b
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 16:25:32 2022 -0700
libide-code: cleanup symbol availability
src/libide/code/ide-symbol-node.c | 2 --
src/libide/code/ide-symbol-node.h | 14 +++++++-------
src/libide/code/ide-symbol-resolver.c | 14 --------------
src/libide/code/ide-symbol-resolver.h | 22 +++++++++++-----------
src/libide/code/ide-symbol-tree.c | 4 ----
src/libide/code/ide-symbol-tree.h | 6 +++---
src/libide/code/ide-symbol.c | 10 ----------
src/libide/code/ide-symbol.h | 20 ++++++++++----------
8 files changed, 31 insertions(+), 61 deletions(-)
---
diff --git a/src/libide/code/ide-symbol-node.c b/src/libide/code/ide-symbol-node.c
index d465bc9fd..e4422c9b0 100644
--- a/src/libide/code/ide-symbol-node.c
+++ b/src/libide/code/ide-symbol-node.c
@@ -277,8 +277,6 @@ ide_symbol_node_get_location_async (IdeSymbolNode *self,
* Completes the request to gets the location for the symbol node.
*
* Returns: (transfer full) (nullable): An #IdeLocation or %NULL.
- *
- * Since: 3.32
*/
IdeLocation *
ide_symbol_node_get_location_finish (IdeSymbolNode *self,
diff --git a/src/libide/code/ide-symbol-node.h b/src/libide/code/ide-symbol-node.h
index e5004c2e1..0f8b435b3 100644
--- a/src/libide/code/ide-symbol-node.h
+++ b/src/libide/code/ide-symbol-node.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_SYMBOL_NODE (ide_symbol_node_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeSymbolNode, ide_symbol_node, IDE, SYMBOL_NODE, GObject)
struct _IdeSymbolNodeClass
@@ -52,20 +52,20 @@ struct _IdeSymbolNodeClass
gpointer _reserved[8];
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbolKind ide_symbol_node_get_kind (IdeSymbolNode *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbolFlags ide_symbol_node_get_flags (IdeSymbolNode *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_symbol_node_get_name (IdeSymbolNode *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
gboolean ide_symbol_node_get_use_markup (IdeSymbolNode *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_symbol_node_get_location_async (IdeSymbolNode *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_symbol_node_get_location_finish (IdeSymbolNode *self,
GAsyncResult *result,
GError **error);
diff --git a/src/libide/code/ide-symbol-resolver.c b/src/libide/code/ide-symbol-resolver.c
index 57cc88ce0..513aca162 100644
--- a/src/libide/code/ide-symbol-resolver.c
+++ b/src/libide/code/ide-symbol-resolver.c
@@ -180,8 +180,6 @@ ide_symbol_resolver_default_init (IdeSymbolResolverInterface *iface)
* Asynchronously requests that @self determine the symbol existing at the source location
* denoted by @self. @callback should call ide_symbol_resolver_lookup_symbol_finish() to
* retrieve the result.
- *
- * Since: 3.32
*/
void
ide_symbol_resolver_lookup_symbol_async (IdeSymbolResolver *self,
@@ -207,8 +205,6 @@ ide_symbol_resolver_lookup_symbol_async (IdeSymbolResolver *self,
* ide_symbol_resolver_lookup_symbol_async().
*
* Returns: (transfer full) (nullable): An #IdeSymbol if successful; otherwise %NULL.
- *
- * Since: 3.32
*/
IdeSymbol *
ide_symbol_resolver_lookup_symbol_finish (IdeSymbolResolver *self,
@@ -231,8 +227,6 @@ ide_symbol_resolver_lookup_symbol_finish (IdeSymbolResolver *self,
* @user_data: user data for @callback
*
* Asynchronously fetch an up to date symbol tree for @file.
- *
- * Since: 3.32
*/
void
ide_symbol_resolver_get_symbol_tree_async (IdeSymbolResolver *self,
@@ -256,8 +250,6 @@ ide_symbol_resolver_get_symbol_tree_async (IdeSymbolResolver *self,
*
* Returns: (nullable) (transfer full): An #IdeSymbolTree; otherwise
* %NULL and @error is set.
- *
- * Since: 3.32
*/
IdeSymbolTree *
ide_symbol_resolver_get_symbol_tree_finish (IdeSymbolResolver *self,
@@ -323,8 +315,6 @@ ide_symbol_resolver_find_references_async (IdeSymbolResolver *self,
*
* Returns: (transfer full) (element-type IdeRange): a #GPtrArray
* of #IdeRange if successful; otherwise %NULL and @error is set.
- *
- * Since: 3.32
*/
GPtrArray *
ide_symbol_resolver_find_references_finish (IdeSymbolResolver *self,
@@ -350,8 +340,6 @@ ide_symbol_resolver_find_references_finish (IdeSymbolResolver *self,
*
* See ide_symbol_resolver_find_nearest_scope_finish() for how to
* complete the operation.
- *
- * Since: 3.32
*/
void
ide_symbol_resolver_find_nearest_scope_async (IdeSymbolResolver *self,
@@ -379,8 +367,6 @@ ide_symbol_resolver_find_nearest_scope_async (IdeSymbolResolver *self,
* See ide_symbol_resolver_find_nearest_scope_async() for more information.
*
* Returns: (transfer full) (nullable): An #IdeSymbol or %NULL
- *
- * Since: 3.32
*/
IdeSymbol *
ide_symbol_resolver_find_nearest_scope_finish (IdeSymbolResolver *self,
diff --git a/src/libide/code/ide-symbol-resolver.h b/src/libide/code/ide-symbol-resolver.h
index 9b27a2062..2ec8d4769 100644
--- a/src/libide/code/ide-symbol-resolver.h
+++ b/src/libide/code/ide-symbol-resolver.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_SYMBOL_RESOLVER (ide_symbol_resolver_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeSymbolResolver, ide_symbol_resolver, IDE, SYMBOL_RESOLVER, IdeObject)
struct _IdeSymbolResolverInterface
@@ -77,49 +77,49 @@ struct _IdeSymbolResolverInterface
GError **error);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_symbol_resolver_load (IdeSymbolResolver *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_symbol_resolver_unload (IdeSymbolResolver *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_symbol_resolver_lookup_symbol_async (IdeSymbolResolver *self,
IdeLocation *location,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbol *ide_symbol_resolver_lookup_symbol_finish (IdeSymbolResolver *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_symbol_resolver_get_symbol_tree_async (IdeSymbolResolver *self,
GFile *file,
GBytes *contents,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbolTree *ide_symbol_resolver_get_symbol_tree_finish (IdeSymbolResolver *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_symbol_resolver_find_references_async (IdeSymbolResolver *self,
IdeLocation *location,
const gchar *language_id,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GPtrArray *ide_symbol_resolver_find_references_finish (IdeSymbolResolver *self,
GAsyncResult *result,
GError **error);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
void ide_symbol_resolver_find_nearest_scope_async (IdeSymbolResolver *self,
IdeLocation *location,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbol *ide_symbol_resolver_find_nearest_scope_finish (IdeSymbolResolver *self,
GAsyncResult *result,
GError **error);
diff --git a/src/libide/code/ide-symbol-tree.c b/src/libide/code/ide-symbol-tree.c
index c96dc6987..2c3595b31 100644
--- a/src/libide/code/ide-symbol-tree.c
+++ b/src/libide/code/ide-symbol-tree.c
@@ -41,8 +41,6 @@ ide_symbol_tree_default_init (IdeSymbolTreeInterface *iface)
* is assumed.
*
* Returns: An unsigned integer containing the number of children.
- *
- * Since: 3.32
*/
guint
ide_symbol_tree_get_n_children (IdeSymbolTree *self,
@@ -63,8 +61,6 @@ ide_symbol_tree_get_n_children (IdeSymbolTree *self,
* Gets the @nth child node of @node.
*
* Returns: (transfer full) (nullable): an #IdeSymbolNode or %NULL.
- *
- * Since: 3.32
*/
IdeSymbolNode *
ide_symbol_tree_get_nth_child (IdeSymbolTree *self,
diff --git a/src/libide/code/ide-symbol-tree.h b/src/libide/code/ide-symbol-tree.h
index 9eea8ab9a..366ef2dd0 100644
--- a/src/libide/code/ide-symbol-tree.h
+++ b/src/libide/code/ide-symbol-tree.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define IDE_TYPE_SYMBOL_TREE (ide_symbol_tree_get_type ())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (IdeSymbolTree, ide_symbol_tree, IDE, SYMBOL_TREE, GObject)
struct _IdeSymbolTreeInterface
@@ -46,10 +46,10 @@ struct _IdeSymbolTreeInterface
guint nth);
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
guint ide_symbol_tree_get_n_children (IdeSymbolTree *self,
IdeSymbolNode *node);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbolNode *ide_symbol_tree_get_nth_child (IdeSymbolTree *self,
IdeSymbolNode *node,
guint nth);
diff --git a/src/libide/code/ide-symbol.c b/src/libide/code/ide-symbol.c
index b902aeab2..7991226f6 100644
--- a/src/libide/code/ide-symbol.c
+++ b/src/libide/code/ide-symbol.c
@@ -224,8 +224,6 @@ ide_symbol_get_name (IdeSymbol *self)
* Gets the location, if any.
*
* Returns: (transfer none) (nullable): an #IdeLocation or %NULL
- *
- * Since: 3.32
*/
IdeLocation *
ide_symbol_get_location (IdeSymbol *self)
@@ -244,8 +242,6 @@ ide_symbol_get_location (IdeSymbol *self)
* Gets the header location, if any.
*
* Returns: (transfer none) (nullable): an #IdeLocation or %NULL
- *
- * Since: 3.32
*/
IdeLocation *
ide_symbol_get_header_location (IdeSymbol *self)
@@ -430,8 +426,6 @@ ide_symbol_kind_get_icon_name (IdeSymbolKind kind)
* This function will never return a floating reference.
*
* Returns: (transfer full): a #GVariant
- *
- * Since: 3.32
*/
GVariant *
ide_symbol_to_variant (IdeSymbol *self)
@@ -468,10 +462,8 @@ ide_symbol_new_from_variant (GVariant *variant)
g_autoptr(GVariant) unboxed = NULL;
g_autoptr(GVariant) vdecl = NULL;
g_autoptr(GVariant) vdef = NULL;
- g_autoptr(GVariant) vcanon = NULL;
g_autoptr(IdeLocation) decl = NULL;
g_autoptr(IdeLocation) def = NULL;
- g_autoptr(IdeLocation) canon = NULL;
const gchar *name;
IdeSymbolKind kind;
IdeSymbolFlags flags;
@@ -517,8 +509,6 @@ ide_symbol_new_from_variant (GVariant *variant)
* @header_location: (nullable):
*
* Returns: (transfer full): an #IdeSymbol
- *
- * Since: 3.32
*/
IdeSymbol *
ide_symbol_new (const gchar *name,
diff --git a/src/libide/code/ide-symbol.h b/src/libide/code/ide-symbol.h
index f3924970f..cb3fa2f1b 100644
--- a/src/libide/code/ide-symbol.h
+++ b/src/libide/code/ide-symbol.h
@@ -99,7 +99,7 @@ typedef enum
#define IDE_TYPE_SYMBOL (ide_symbol_get_type())
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (IdeSymbol, ide_symbol, IDE, SYMBOL, GObject)
struct _IdeSymbolClass
@@ -110,27 +110,27 @@ struct _IdeSymbolClass
gpointer _reserved[16];
};
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbol *ide_symbol_new (const gchar *name,
IdeSymbolKind kind,
IdeSymbolFlags flags,
IdeLocation *location,
IdeLocation *header_location);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbolKind ide_symbol_get_kind (IdeSymbol *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbolFlags ide_symbol_get_flags (IdeSymbol *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_symbol_get_name (IdeSymbol *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_symbol_get_location (IdeSymbol *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeLocation *ide_symbol_get_header_location (IdeSymbol *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
IdeSymbol *ide_symbol_new_from_variant (GVariant *variant);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
GVariant *ide_symbol_to_variant (IdeSymbol *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
const gchar *ide_symbol_kind_get_icon_name (IdeSymbolKind kind);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]