Commit a636b15c authored by Martyn Russell's avatar Martyn Russell

tracker-miner-fs: Removed tracker-utils.[ch], no longer used

parent 75ad5572
......@@ -26,9 +26,7 @@ tracker_miner_fs_SOURCES = \
tracker-miner-files.c \
tracker-miner-files.h \
tracker-thumbnailer.c \
tracker-thumbnailer.h \
tracker-utils.c \
tracker-utils.h
tracker-thumbnailer.h
tracker_miner_fs_LDADD = \
$(top_builddir)/src/libtracker-data/libtracker-data.la \
......
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2009, Nokia (urho.konttori@nokia.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "config.h"
#include "tracker-utils.h"
void
tracker_throttle (TrackerConfig *config,
gint multiplier)
{
gint throttle;
g_return_if_fail (TRACKER_IS_CONFIG (config));
/* Get the throttle, add 5 (minimum value) so we don't do
* nothing and then multiply it by the factor given
*/
throttle = tracker_config_get_throttle (config);
/* throttle += 5; */
throttle *= multiplier;
if (throttle > 0) {
g_usleep (throttle);
}
}
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2009, Nokia
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __TRACKER_MINER_FS_UTILS_H__
#define __TRACKER_MINER_FS_UTILS_H__
#include <glib.h>
#include "tracker-config.h"
void tracker_throttle (TrackerConfig *config,
gint multiplier);
#endif /* __TRACKER_MINER_FS_UTILS_H__ */
......@@ -27,7 +27,6 @@ tracker_metadata_utils_SOURCES = \
$(top_srcdir)/src/tracker-miner-fs/tracker-config.c \
$(top_srcdir)/src/tracker-miner-fs/tracker-marshal.c \
$(top_srcdir)/src/tracker-miner-fs/tracker-thumbnailer.c \
$(top_srcdir)/src/tracker-miner-fs/tracker-utils.c \
tracker-metadata-utils-test.c
tracker_metadata_utils_LDADD = \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment