extensions/source/propctrlr/stringrepresentation.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 82e8160c3bebd89527f83bf24c2cfb2aa892611a
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Mon Mar 28 16:55:03 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Mon Mar 28 20:06:12 2022 +0200

    -Werror,-Wunused-but-set-variable
    
    ...since f1702aa8e46d63b85cc16e550c96b79509057c89 "INTEGRATION: CWS oj14".
    (Maybe the odd code was there to allow breaking on it with a debugger, and 
the
    original author wondered whether TypeClass_CONSTANT can actually happen 
here,
    which it probably can not, so it should probably be replaced with
    O3TL_UNREACHABLE, but that's left for a follow-up.)
    
    Change-Id: I97881b1b35f7de3940400c50b58eb08ca9a746a7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132226
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/extensions/source/propctrlr/stringrepresentation.cxx 
b/extensions/source/propctrlr/stringrepresentation.cxx
index 83befe2039d3..3c984eb0a867 100644
--- a/extensions/source/propctrlr/stringrepresentation.cxx
+++ b/extensions/source/propctrlr/stringrepresentation.cxx
@@ -416,10 +416,6 @@ bool StringRepresentation::convertGenericValueToString( 
const uno::Any& _rValue,
     }
     break;
     case uno::TypeClass_CONSTANT:
-        {
-            int i = 0;
-            ++i;
-        }
         break;
 
     // some structs

Reply via email to