re-disable the cache that was enabled by mistake
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 10 Jun 2009 02:55:07 +0000 (02:55 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 10 Jun 2009 02:55:07 +0000 (02:55 -0000)
svn path=/trunk/mcs/; revision=135817

mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs

index fb0c32bfb357d630e78f65abdcc394aabfb932f2..c846ad9006e73493cf43fb6dcce70d1b805ea02c 100644 (file)
@@ -95,12 +95,8 @@ namespace System.Xml.XPath
                internal static XPathExpression Compile (string xpath,
                        NSResolver nsmgr, IStaticXsltContext ctx)
                {
-                       XPathExpression x = ExpressionCache.Get (xpath, ctx);
-                       if (x == null) {
-                               XPathParser parser = new XPathParser (ctx);
-                               x = new CompiledExpression (xpath, parser.Compile (xpath));
-                               ExpressionCache.Set (xpath, ctx, x);
-                       }
+                       XPathParser parser = new XPathParser (ctx);
+                       CompiledExpression x = new CompiledExpression (xpath, parser.Compile (xpath));
                        x.SetContext (nsmgr);
                        return x;
                }