Removed unneeded locking method. (FELIX-851)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@736422 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java
index f50c581..ad3a82e 100644
--- a/framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -3968,46 +3968,6 @@
         }
     }
 
-    private boolean acquireBundleLockOrFail(BundleImpl bundle)
-    {
-        synchronized (m_bundleLock)
-        {
-            // Wait if any thread has the global lock, unless the current thread
-            // holds the global lock.
-            while ((m_globalLockCount > 0)
-                && !m_lockingThreadMap.containsKey(Thread.currentThread()))
-            {
-                try
-                {
-                    m_bundleLock.wait();
-                }
-                catch (InterruptedException e)
-                {
-                    // Ignore and just keep waiting.
-                }
-            }
-
-            // Return immediately if the bundle lock is not available.
-            if (!bundle.isLockable())
-            {
-                return false;
-            }
-
-            // Increment the current thread's lock count.
-            int[] counter = (int[]) m_lockingThreadMap.get(Thread.currentThread());
-            if (counter == null)
-            {
-                counter = new int[] { 0 };
-            }
-            counter[0]++;
-            m_lockingThreadMap.put(Thread.currentThread(), counter);
-
-            // Acquire the bundle lock.
-            bundle.lock();
-            return true;
-        }
-    }
-
     void releaseBundleLock(BundleImpl bundle)
     {
         synchronized (m_bundleLock)