summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-22 10:17:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 08:58:43 +0200
commit0f347c04bf1305c634b761f92ff487e831bc564c (patch)
treecfa610a2418d1fbfe963c7290a778be3c33ada6c /sal/rtl
parentf871d0e7c99d88b55c38a9878f3ef0bfec4eb089 (diff)
loplugin:unusedfields in registry..sax
Change-Id: Ie0e2ecaadb49273cb4e78bc894111523940e7c8e Reviewed-on: https://gerrit.libreoffice.org/39098 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/alloc_cache.cxx8
-rw-r--r--sal/rtl/alloc_cache.hxx1
2 files changed, 1 insertions, 8 deletions
diff --git a/sal/rtl/alloc_cache.cxx b/sal/rtl/alloc_cache.cxx
index f68d13909686..f310559c81e8 100644
--- a/sal/rtl/alloc_cache.cxx
+++ b/sal/rtl/alloc_cache.cxx
@@ -786,7 +786,6 @@ rtl_cache_activate (
size_t objalign,
int (SAL_CALL * constructor)(void * obj, void * userarg),
void (SAL_CALL * destructor) (void * obj, void * userarg),
- void (SAL_CALL * reclaim) (void * userarg),
void * userarg,
rtl_arena_type * source,
int flags
@@ -829,7 +828,6 @@ rtl_cache_activate (
cache->m_constructor = constructor;
cache->m_destructor = destructor;
- cache->m_reclaim = reclaim;
cache->m_userarg = userarg;
/* slab layer */
@@ -1056,7 +1054,7 @@ SAL_CALL rtl_cache_create (
sal_Size objalign,
int (SAL_CALL * constructor)(void * obj, void * userarg),
void (SAL_CALL * destructor) (void * obj, void * userarg),
- void (SAL_CALL * reclaim) (void * userarg),
+ void (SAL_CALL * /*reclaim*/) (void * userarg),
void * userarg,
rtl_arena_type * source,
int flags
@@ -1086,7 +1084,6 @@ try_alloc:
objalign,
constructor,
destructor,
- reclaim,
userarg,
source,
flags
@@ -1552,7 +1549,6 @@ rtl_cache_init()
0, /* objalign */
rtl_cache_magazine_constructor,
rtl_cache_magazine_destructor,
- nullptr, /* reclaim */
nullptr, /* userarg: NYI */
gp_default_arena, /* source */
RTL_CACHE_FLAG_NOMAGAZINE /* during bootstrap; activated below */
@@ -1576,7 +1572,6 @@ rtl_cache_init()
0, /* objalign */
rtl_cache_slab_constructor,
rtl_cache_slab_destructor,
- nullptr, /* reclaim */
nullptr, /* userarg: none */
gp_default_arena, /* source */
0 /* flags: none */
@@ -1597,7 +1592,6 @@ rtl_cache_init()
0, /* objalign */
nullptr, /* constructor */
nullptr, /* destructor */
- nullptr, /* reclaim */
nullptr, /* userarg */
gp_default_arena, /* source */
0 /* flags: none */
diff --git a/sal/rtl/alloc_cache.hxx b/sal/rtl/alloc_cache.hxx
index 1afcd4288922..cd35285740e0 100644
--- a/sal/rtl/alloc_cache.hxx
+++ b/sal/rtl/alloc_cache.hxx
@@ -116,7 +116,6 @@ struct rtl_cache_st
int (SAL_CALL * m_constructor)(void * obj, void * userarg); /* const */
void (SAL_CALL * m_destructor) (void * obj, void * userarg); /* const */
- void (SAL_CALL * m_reclaim) (void * userarg); /* const */
void * m_userarg;
/* slab layer */