Clean up redundant user addons item list copies in helper functions
This commit is contained in:
parent
8bea9b586d
commit
ac1ba277e4
1 changed files with 0 additions and 5 deletions
|
@ -358,7 +358,6 @@ addons_get_files (AddonsKind kind)
|
||||||
{
|
{
|
||||||
GSList* files;
|
GSList* files;
|
||||||
GDir* addon_dir;
|
GDir* addon_dir;
|
||||||
GSList* list;
|
|
||||||
GSList* directories;
|
GSList* directories;
|
||||||
const gchar* filename;
|
const gchar* filename;
|
||||||
gchar* dirname;
|
gchar* dirname;
|
||||||
|
@ -375,7 +374,6 @@ addons_get_files (AddonsKind kind)
|
||||||
files = NULL;
|
files = NULL;
|
||||||
|
|
||||||
directories = addons_get_directories (kind);
|
directories = addons_get_directories (kind);
|
||||||
list = directories;
|
|
||||||
while (directories)
|
while (directories)
|
||||||
{
|
{
|
||||||
dirname = directories->data;
|
dirname = directories->data;
|
||||||
|
@ -395,7 +393,6 @@ addons_get_files (AddonsKind kind)
|
||||||
directories = g_slist_next (directories);
|
directories = g_slist_next (directories);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (list);
|
|
||||||
g_free (file_extension);
|
g_free (file_extension);
|
||||||
|
|
||||||
return files;
|
return files;
|
||||||
|
@ -1179,7 +1176,6 @@ addons_monitor_directories (MidoriExtension* extension,
|
||||||
AddonsKind kind)
|
AddonsKind kind)
|
||||||
{
|
{
|
||||||
GSList* directories;
|
GSList* directories;
|
||||||
GSList* list;
|
|
||||||
GError* error;
|
GError* error;
|
||||||
GSList* monitors;
|
GSList* monitors;
|
||||||
GFileMonitor* monitor;
|
GFileMonitor* monitor;
|
||||||
|
@ -1190,7 +1186,6 @@ addons_monitor_directories (MidoriExtension* extension,
|
||||||
monitors = g_object_get_data (G_OBJECT (extension), "monitors");
|
monitors = g_object_get_data (G_OBJECT (extension), "monitors");
|
||||||
|
|
||||||
directories = addons_get_directories (kind);
|
directories = addons_get_directories (kind);
|
||||||
list = directories;
|
|
||||||
while (directories)
|
while (directories)
|
||||||
{
|
{
|
||||||
directory = g_file_new_for_path (directories->data);
|
directory = g_file_new_for_path (directories->data);
|
||||||
|
|
Loading…
Reference in a new issue