Making simple web app work with Grasshopper.
[mono.git] / mcs / class / System.Web / System.Web.UI / TemplateControl.jvm.cs
index d35a5d9dfe9ca34d0bd6d30713ce24316257016b..2a5f8b4dde0fd8489c4a6e27e9ce2e9e690e06c6 100644 (file)
@@ -298,9 +298,6 @@ namespace System.Web.UI {
                        string assemblyName = "dll.ghres";
                        
                        java.io.InputStream inputStream = contextClassLoader.getResourceAsStream(assemblyName);
-                       if (inputStream == null)
-                               throw new System.IO.IOException("couldn't open resource file:" + assemblyName);
-                       
                        System.IO.Stream strim = null;
                        if (inputStream == null) {
                                string descPath = String.Join("/", new string[]{"assemblies", this.GetType().Assembly.GetName().Name, assemblyName});
@@ -315,13 +312,11 @@ namespace System.Web.UI {
                                if (strim == null)
                                        throw new System.IO.IOException("couldn't open resource file:" + assemblyName);
                        }
-                       
-                       
+
                        try
                        {
                                if (strim == null)
                                        strim = (System.IO.Stream)vmw.common.IOUtils.getStream(inputStream);
-                               strim = (System.IO.Stream)vmw.common.IOUtils.getStream(inputStream);
                                int capacity = (int)strim.Length;
                                byte[] resourceBytes = new byte[capacity];
                                strim.Read(resourceBytes,0,capacity);