From 1d0dffda44772e3cd84f184a0135d77a18d8668e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 9 Oct 2009 20:57:28 +0400 Subject: [PATCH] remove unused stray copy of AntBundle --- openapi/src/com/intellij/ant/AntBundle.java | 36 --------------------- 1 file changed, 36 deletions(-) delete mode 100644 openapi/src/com/intellij/ant/AntBundle.java diff --git a/openapi/src/com/intellij/ant/AntBundle.java b/openapi/src/com/intellij/ant/AntBundle.java deleted file mode 100644 index 1ab87c02225c..000000000000 --- a/openapi/src/com/intellij/ant/AntBundle.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2005 JetBrains s.r.o. All Rights Reserved. - */ -package com.intellij.ant; - -import com.intellij.CommonBundle; -import org.jetbrains.annotations.NonNls; -import org.jetbrains.annotations.PropertyKey; - -import java.lang.ref.Reference; -import java.lang.ref.SoftReference; -import java.util.ResourceBundle; - -public class AntBundle { - private static Reference ourBundle; - - @NonNls - protected static final String PATH_TO_BUNDLE = "messages.AntBundle"; - - private AntBundle() { - } - - public static String message(@PropertyKey(resourceBundle = PATH_TO_BUNDLE)String key, Object... params) { - return CommonBundle.message(getBundle(), key, params); - } - - private static ResourceBundle getBundle() { - ResourceBundle bundle = null; - if (ourBundle != null) bundle = ourBundle.get(); - if (bundle == null) { - bundle = ResourceBundle.getBundle(PATH_TO_BUNDLE); - ourBundle = new SoftReference(bundle); - } - return bundle; - } -}