diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-22 10:17:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 08:58:43 +0200 |
commit | 0f347c04bf1305c634b761f92ff487e831bc564c (patch) | |
tree | cfa610a2418d1fbfe963c7290a778be3c33ada6c /sal | |
parent | f871d0e7c99d88b55c38a9878f3ef0bfec4eb089 (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')
-rw-r--r-- | sal/osl/unx/process.cxx | 2 | ||||
-rw-r--r-- | sal/rtl/alloc_cache.cxx | 8 | ||||
-rw-r--r-- | sal/rtl/alloc_cache.hxx | 1 |
3 files changed, 1 insertions, 10 deletions
diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx index 405322955d3d..87fedeb20e08 100644 --- a/sal/osl/unx/process.cxx +++ b/sal/osl/unx/process.cxx @@ -79,7 +79,6 @@ struct oslProcessImpl { struct ProcessData { const sal_Char* m_pszArgs[MAX_ARGS + 1]; - oslProcessOption m_options; const sal_Char* m_pszDir; sal_Char* m_pszEnv[MAX_ENVS + 1]; uid_t m_uid; @@ -604,7 +603,6 @@ oslProcessError SAL_CALL osl_psz_executeProcess(sal_Char *pszImageName, Data.m_pszArgs[i+2] = nullptr; } - Data.m_options = Options; Data.m_pszDir = (pszDirectory != nullptr) ? strdup(pszDirectory) : nullptr; if (pszEnvironments != nullptr) 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 */ |