forked from AuroraMiddleware/gtk
Remove some unused variables
This commit is contained in:
parent
3c993547a4
commit
461c1a547e
@ -1298,12 +1298,10 @@ GtkFileSystemVolume *
|
|||||||
_gtk_file_system_get_volume_for_file (GtkFileSystem *file_system,
|
_gtk_file_system_get_volume_for_file (GtkFileSystem *file_system,
|
||||||
GFile *file)
|
GFile *file)
|
||||||
{
|
{
|
||||||
GtkFileSystemPrivate *priv;
|
|
||||||
GMount *mount;
|
GMount *mount;
|
||||||
|
|
||||||
DEBUG ("get_volume_for_file");
|
DEBUG ("get_volume_for_file");
|
||||||
|
|
||||||
priv = GTK_FILE_SYSTEM_GET_PRIVATE (file_system);
|
|
||||||
mount = g_file_find_enclosing_mount (file, NULL, NULL);
|
mount = g_file_find_enclosing_mount (file, NULL, NULL);
|
||||||
|
|
||||||
if (!mount && g_file_is_native (file))
|
if (!mount && g_file_is_native (file))
|
||||||
|
@ -1426,11 +1426,9 @@ button_drag_data_get_cb (GtkWidget *widget,
|
|||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
ButtonData *button_data;
|
ButtonData *button_data;
|
||||||
GtkPathBar *path_bar;
|
|
||||||
char *uris[2];
|
char *uris[2];
|
||||||
|
|
||||||
button_data = data;
|
button_data = data;
|
||||||
path_bar = GTK_PATH_BAR (widget->parent); /* the button's parent *is* the path bar */
|
|
||||||
|
|
||||||
uris[0] = g_file_get_uri (button_data->file);
|
uris[0] = g_file_get_uri (button_data->file);
|
||||||
uris[1] = NULL;
|
uris[1] = NULL;
|
||||||
@ -1701,13 +1699,10 @@ _gtk_path_bar_set_file (GtkPathBar *path_bar,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
struct SetFileInfo *info;
|
struct SetFileInfo *info;
|
||||||
gboolean result;
|
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_PATH_BAR (path_bar), FALSE);
|
g_return_val_if_fail (GTK_IS_PATH_BAR (path_bar), FALSE);
|
||||||
g_return_val_if_fail (G_IS_FILE (file), FALSE);
|
g_return_val_if_fail (G_IS_FILE (file), FALSE);
|
||||||
|
|
||||||
result = TRUE;
|
|
||||||
|
|
||||||
/* Check whether the new path is already present in the pathbar as buttons.
|
/* Check whether the new path is already present in the pathbar as buttons.
|
||||||
* This could be a parent directory or a previous selected subdirectory.
|
* This could be a parent directory or a previous selected subdirectory.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user