diff --git a/docs/reference/xed-sections.txt b/docs/reference/xed-sections.txt index 5b60e1f..dac318e 100644 --- a/docs/reference/xed-sections.txt +++ b/docs/reference/xed-sections.txt @@ -409,7 +409,6 @@ xed_window_get_statusbar xed_window_get_ui_manager xed_window_get_state xed_window_get_tab_from_location -xed_window_get_tab_from_uri xed_window_get_message_bus XED_WINDOW diff --git a/xed/xed-window.c b/xed/xed-window.c index 545b4b1..1647476 100644 --- a/xed/xed-window.c +++ b/xed/xed-window.c @@ -4076,31 +4076,3 @@ xed_window_get_message_bus (XedWindow *window) g_return_val_if_fail(XED_IS_WINDOW (window), NULL); return window->priv->message_bus; } - -/** - * xed_window_get_tab_from_uri: - * @window: a #XedWindow - * @uri: the uri to get the #XedTab - * - * Gets the #XedTab that matches @uri. - * - * Returns: (transfer none): the #XedTab associated with @uri. - * - * Deprecated: 2.24: Use xed_window_get_tab_from_location() instead. - */ -XedTab * -xed_window_get_tab_from_uri (XedWindow *window, - const gchar *uri) -{ - GFile *f; - XedTab *tab; - - g_return_val_if_fail(XED_IS_WINDOW (window), NULL); - g_return_val_if_fail(uri != NULL, NULL); - - f = g_file_new_for_uri (uri); - tab = xed_window_get_tab_from_location (window, f); - g_object_unref (f); - - return tab; -} diff --git a/xed/xed-window.h b/xed/xed-window.h index 5909d2f..19d52a8 100644 --- a/xed/xed-window.h +++ b/xed/xed-window.h @@ -97,7 +97,6 @@ GtkWidget *xed_window_get_searchbar (XedWindow *window); GtkUIManager *xed_window_get_ui_manager (XedWindow *window); XedWindowState xed_window_get_state (XedWindow *window); XedTab *xed_window_get_tab_from_location (XedWindow *window, GFile *location); -XedTab *xed_window_get_tab_from_uri (XedWindow *window, const gchar *uri); /* Message bus */ XedMessageBus *xed_window_get_message_bus (XedWindow *window);