diff --git a/gdk/gdkprofiler.c b/gdk/gdkprofiler.c index aed2557de6..15a54ad05f 100644 --- a/gdk/gdkprofiler.c +++ b/gdk/gdkprofiler.c @@ -27,7 +27,6 @@ #endif #include "gdkversionmacros.h" -#include "gdkprofiler.h" #include "gdkprofilerprivate.h" #include "gdkframeclockprivate.h" @@ -229,34 +228,3 @@ gdk_profiler_set_int_counter (guint id, } #endif /* G_OS_WIN32 */ - -/** - * gdk_profiler_set_mark: - * @duration: the duration of the mark, or 0 - * @name: the name of the mark (up to 40 characters) - * @message: (optional): the message of the mark - * - * Insert a mark into the profiling data if we - * are currently profiling. - * This information will show up in tools like sysprof - * or GNOME Builder when viewing the profiling data. - * It can be used to mark interesting regions in the - * captured data. - * - * If the duration is non-zero, the mark applies to - * the timespan from @duration microseconds in the - * past to the current time. To mark just a point in - * time, pass 0 as duration. - * - * @name should be a short string, and @message is optional. - */ -void -gdk_profiler_set_mark (guint64 duration, - const char *name, - const char *message) -{ - guint64 start; - - start = g_get_monotonic_time () - duration; - gdk_profiler_add_mark (start, duration, name, message); -} diff --git a/gdk/gdkprofiler.h b/gdk/gdkprofiler.h deleted file mode 100644 index 70c283df9e..0000000000 --- a/gdk/gdkprofiler.h +++ /dev/null @@ -1,32 +0,0 @@ -/* GDK - The GIMP Drawing Kit - * Copyright (C) 2018 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef __GDK_PROFILER_H__ -#define __GDK_PROFILER_H__ - -#include - -G_BEGIN_DECLS - -GDK_AVAILABLE_IN_ALL -void gdk_profiler_set_mark (guint64 duration, - const char *name, - const char *message); - -G_END_DECLS - -#endif /* __GDK_PROFILER_H__ */