[evolution-data-server] imapx_select: Remove the "forced" parameter.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] imapx_select: Remove the "forced" parameter.
- Date: Thu, 15 Aug 2013 09:47:03 +0000 (UTC)
commit 4ab5aecbbf4f0da8fa37c0bc635189cef3d86401
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Aug 14 07:41:07 2013 -0400
imapx_select: Remove the "forced" parameter.
Only ever TRUE in a chunk of disabled code.
Remove the parameter until we actually need it.
camel/camel-imapx-server.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/camel/camel-imapx-server.c b/camel/camel-imapx-server.c
index 96a934b..ba9d100 100644
--- a/camel/camel-imapx-server.c
+++ b/camel/camel-imapx-server.c
@@ -530,7 +530,6 @@ enum {
static gboolean imapx_select (CamelIMAPXServer *is,
CamelFolder *folder,
- gboolean force,
GError **error);
G_DEFINE_TYPE (CamelIMAPXServer, camel_imapx_server, CAMEL_TYPE_OBJECT)
@@ -1182,7 +1181,7 @@ imapx_command_start_next (CamelIMAPXServer *is,
is->tagprefix, "Selecting folder '%s' for command '%s'(%p)\n",
camel_folder_get_full_name (first_ic->select),
first_ic->name, first_ic);
- imapx_select (is, first_ic->select, FALSE, error);
+ imapx_select (is, first_ic->select, error);
} else {
GQueue start = G_QUEUE_INIT;
GList *head, *link;
@@ -3612,7 +3611,6 @@ imapx_command_select_done (CamelIMAPXServer *is,
static gboolean
imapx_select (CamelIMAPXServer *is,
CamelFolder *folder,
- gboolean forced,
GError **error)
{
CamelIMAPXCommand *ic;
@@ -3640,7 +3638,7 @@ imapx_select (CamelIMAPXServer *is,
if (select_pending != NULL) {
nothing_to_do = TRUE;
- } else if (select_folder == folder && !forced) {
+ } else if (select_folder == folder) {
nothing_to_do = TRUE;
} else if (!camel_imapx_command_queue_is_empty (is->active)) {
nothing_to_do = TRUE;
@@ -5747,7 +5745,7 @@ imapx_job_refresh_info_start (CamelIMAPXJob *job,
if (!imapx_stop_idle (is, error))
goto done;
/* This doesn't work -- this is an immediate command, not queued */
- if (!imapx_select (is, folder, TRUE, error))
+ if (!imapx_select (is, folder, error))
goto done;
} else {
/* Or maybe just NOOP, unless we're in IDLE in which case do nothing */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]