summaryrefslogtreecommitdiff
path: root/libmailutils/stream/logstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmailutils/stream/logstream.c')
-rw-r--r--libmailutils/stream/logstream.c70
1 files changed, 0 insertions, 70 deletions
diff --git a/libmailutils/stream/logstream.c b/libmailutils/stream/logstream.c
index 89314056d..234260365 100644
--- a/libmailutils/stream/logstream.c
+++ b/libmailutils/stream/logstream.c
@@ -475,48 +475,6 @@ _log_ctl (struct _mu_stream *str, int code, int opcode, void *arg)
lr->end.mu_col = sp->locrange.end.mu_col;
}
break;
-
- case MU_IOCTL_LOGSTREAM_GET_LOCUS_DEPRECATED:
- if (!arg)
- return EINVAL;
- else
- {
- struct mu_locus_DEPRECATED *ploc = arg;
- if (sp->locrange.beg.mu_file)
- {
- ploc->mu_file = strdup (sp->locrange.beg.mu_file);
- if (!ploc->mu_file)
- return ENOMEM;
- }
- else
- ploc->mu_file = NULL;
- ploc->mu_line = sp->locrange.beg.mu_line;
- ploc->mu_col = sp->locrange.beg.mu_col;
- }
- break;
-
- case MU_IOCTL_LOGSTREAM_SET_LOCUS_DEPRECATED:
- {
- struct mu_locus_DEPRECATED *ploc = arg;
-
- mu_ident_deref (sp->locrange.end.mu_file);
- sp->locrange.end.mu_file = NULL;
- if (arg)
- {
- status = lr_set_file (&sp->locrange, ploc->mu_file, 0, 0);
- if (status)
- return status;
- lr_set_line (&sp->locrange, ploc->mu_line, 0);
- lr_set_col (&sp->locrange, ploc->mu_col, 0);
- }
- else
- {
- mu_ident_deref (sp->locrange.beg.mu_file);
- sp->locrange.beg.mu_file = NULL;
- }
-
- break;
- }
case MU_IOCTL_LOGSTREAM_SET_LOCUS_LINE:
if (!arg)
@@ -640,33 +598,5 @@ mu_log_stream_create (mu_stream_t *pstr, mu_stream_t transport)
return 0;
}
-
-static char wiki_url[] = "http://mailutils.org/wiki/Source_location_API#Deprecated_interface";
-
-int
-mu_ioctl_logstream_get_locus_deprecated (void)
-{
- static int warned;
- if (!warned)
- {
- mu_error (_("the program uses MU_IOCTL_LOGSTREAM_GET_LOCUS, which is deprecated"));
- mu_error (_("please see %s, for detailed guidelines"), wiki_url);
- warned = 1;
- }
- return MU_IOCTL_LOGSTREAM_GET_LOCUS_DEPRECATED;
-}
-
-int
-mu_ioctl_logstream_set_locus_deprecated (void)
-{
- static int warned;
- if (!warned)
- {
- mu_error (_("program uses MU_IOCTL_LOGSTREAM_SET_LOCUS, which is deprecated"));
- mu_error (_("please see %s, for detailed guidelines"), wiki_url);
- warned = 1;
- }
- return MU_IOCTL_LOGSTREAM_SET_LOCUS_DEPRECATED;
-}

Return to:

Send suggestions and report system problems to the System administrator.