aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-26 23:32:55 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-27 12:36:19 +0100
commit357bbf4c92ddb3fbc0c4292600b2ad9e95cd0a13 (patch)
treebb6c345364d6bb3213710376b3a27a171e8f667b /src/libutil/util.h
parent24ad458e895aaa6215ea0ba86d332c0acfd6f1c9 (diff)
downloadrspamd-357bbf4c92ddb3fbc0c4292600b2ad9e95cd0a13.tar.gz
rspamd-357bbf4c92ddb3fbc0c4292600b2ad9e95cd0a13.zip
[Minor] Remove unused functions
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r--src/libutil/util.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index d1d83716e..d8a1eae60 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -229,14 +229,6 @@ typedef struct rspamd_mutex_s {
#endif
} rspamd_mutex_t;
-typedef struct rspamd_rwlock_s {
-#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION > 30))
- GRWLock rwlock;
-#else
- GStaticRWLock rwlock;
-#endif
-} rspamd_rwlock_t;
-
/**
* Create new mutex
@@ -263,42 +255,6 @@ void rspamd_mutex_unlock (rspamd_mutex_t *mtx);
void rspamd_mutex_free (rspamd_mutex_t *mtx);
/**
- * Create new rwloc
- * @return
- */
-rspamd_rwlock_t * rspamd_rwlock_new (void);
-
-/**
- * Lock rwlock for writing
- * @param mtx
- */
-void rspamd_rwlock_writer_lock (rspamd_rwlock_t *mtx);
-
-/**
- * Lock rwlock for reading
- * @param mtx
- */
-void rspamd_rwlock_reader_lock (rspamd_rwlock_t *mtx);
-
-/**
- * Unlock rwlock from writing
- * @param mtx
- */
-void rspamd_rwlock_writer_unlock (rspamd_rwlock_t *mtx);
-
-/**
- * Unlock rwlock from reading
- * @param mtx
- */
-void rspamd_rwlock_reader_unlock (rspamd_rwlock_t *mtx);
-
-/**
- * Free rwlock
- * @param mtx
- */
-void rspamd_rwlock_free (rspamd_rwlock_t *mtx);
-
-/**
* Create new named thread
* @param name name pattern
* @param func function to start