diff options
| author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-14 07:46:13 -0400 |
|---|---|---|
| committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-14 07:58:12 -0400 |
| commit | 4ece2ae37a030e331d1c064b746546ed84c40415 (patch) | |
| tree | a0a93934500a8653630029db3666e0fb5efb5154 /camel/camel-imapx-utils.c | |
| parent | f2cfafbe088cd4ef887733caecf3caeb0b7044bc (diff) | |
| download | evolution-data-server-4ece2ae37a030e331d1c064b746546ed84c40415.tar.gz | |
Remove IMAPX_TOK_PROTOCOL.
This just makes it awkward to check for errors.
An error is an error, the GError domain should indicate the type.
Diffstat (limited to 'camel/camel-imapx-utils.c')
| -rw-r--r-- | camel/camel-imapx-utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/camel/camel-imapx-utils.c b/camel/camel-imapx-utils.c index 08e4e0f9d..43bb86e82 100644 --- a/camel/camel-imapx-utils.c +++ b/camel/camel-imapx-utils.c @@ -2205,7 +2205,6 @@ camel_imapx_parse_quota (CamelIMAPXStream *is, tok = camel_imapx_stream_token (is, &token, &len, cancellable, error); switch (tok) { case IMAPX_TOK_ERROR: - case IMAPX_TOK_PROTOCOL: goto fail; case '(': break; @@ -2247,7 +2246,6 @@ quota_resource: tok = camel_imapx_stream_token (is, &token, &len, cancellable, error); switch (tok) { case IMAPX_TOK_ERROR: - case IMAPX_TOK_PROTOCOL: goto fail; case ')': break; @@ -2320,7 +2318,7 @@ camel_imapx_parse_quotaroot (CamelIMAPXStream *is, is, &token, &len, cancellable, error); if (tok == '\n') break; - if (tok == IMAPX_TOK_ERROR || tok == IMAPX_TOK_PROTOCOL) + if (tok == IMAPX_TOK_ERROR) goto fail; camel_imapx_stream_ungettoken (is, tok, token, len); |
