]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl-java: Remove an unused variable.
authorBruno Haible <bruno@clisp.org>
Sun, 3 Aug 2025 18:11:40 +0000 (20:11 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 3 Aug 2025 18:11:40 +0000 (20:11 +0200)
Reported by Coverity.

* gettext-runtime/intl-java/gnu/gettext/GettextResource.java (ngettextnull):
Remove an unused variable.

gettext-runtime/intl-java/gnu/gettext/GettextResource.java

index 7c86d26e527ebc02fdb89e5276bb12b4003e08ed..6151698d3f831e02592091f92dd9f94e563aef7f 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU gettext for Java
- * Copyright (C) 2001-2024 Free Software Foundation, Inc.
+ * Copyright (C) 2001-2025 Free Software Foundation, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -99,7 +99,6 @@ public abstract class GettextResource extends ResourceBundle {
     // is that we want the generated ResourceBundles to be completely
     // standalone, so that migration from the Sun approach to the GNU gettext
     // approach (without use of plurals) is as straightforward as possible.
-    ResourceBundle origCatalog = catalog;
     do {
       // Try catalog itself.
       if (verbose)