diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-12 15:00:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-12 20:21:22 +0200 |
commit | 6e21f5a6b71790b3a36f67c3915b07a5f5717bcf (patch) | |
tree | 9d0c08cf449fa574dcce1b23af30a71dac9c4376 /dbaccess | |
parent | 164ec9281aa57d52763e9622adb6e2e37d14bff8 (diff) |
loplugin:unusedmethods
Change-Id: Ifd3a1ccef68ebc4cd4e7785357e6a476f6669eb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123456
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/inc/core_resource.hxx | 15 | ||||
-rw-r--r-- | dbaccess/source/core/resource/core_resource.cxx | 6 |
2 files changed, 0 insertions, 21 deletions
diff --git a/dbaccess/inc/core_resource.hxx b/dbaccess/inc/core_resource.hxx index 0e70aabefea6..99cbb34d6d2a 100644 --- a/dbaccess/inc/core_resource.hxx +++ b/dbaccess/inc/core_resource.hxx @@ -43,21 +43,6 @@ namespace dbaccess */ static OUString loadString(TranslateId pResId); - /** loads a string from the resource file, substituting a placeholder with a given string - - @param pResId - the resource ID of the string to load - @param _pPlaceholderAscii - the ASCII representation of the placeholder string - @param _rReplace - the string which should substitute the placeholder - */ - static OUString loadString( - TranslateId pResId, - const char* _pPlaceholderAscii, - std::u16string_view _rReplace - ); - /** loads a string from the resource file, substituting two placeholders with given strings @param pResId diff --git a/dbaccess/source/core/resource/core_resource.cxx b/dbaccess/source/core/resource/core_resource.cxx index 864280452d92..312a328e2808 100644 --- a/dbaccess/source/core/resource/core_resource.cxx +++ b/dbaccess/source/core/resource/core_resource.cxx @@ -31,12 +31,6 @@ namespace dbaccess return Translate::get(pResId, Translate::Create("dba")); } - OUString ResourceManager::loadString(TranslateId pResId, const char* _pPlaceholderAscii, std::u16string_view _rReplace) - { - OUString sString(loadString(pResId)); - return sString.replaceFirst( OUString::createFromAscii(_pPlaceholderAscii), _rReplace ); - } - OUString ResourceManager::loadString(TranslateId pResId, const char* _pPlaceholderAscii1, std::u16string_view _rReplace1, const char* _pPlaceholderAscii2, std::u16string_view _rReplace2) { |