Merge pull request #24002 from sandreenko/fixDesktopFailure
[platform/upstream/coreclr.git] / src / ilasm / method.cpp
index 1e3eec5..298fc15 100644 (file)
@@ -1,7 +1,6 @@
-//
-// Copyright (c) Microsoft. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information. 
-//
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
 //
 // file: method.cpp
 //
@@ -33,7 +32,7 @@ Method::Method(Assembler *pAssembler, Class *pClass, __in __nullterminated char
     m_szExportAlias = NULL;
     m_dwExportOrdinal = 0xFFFFFFFF;
     m_ulLines[0]=m_ulLines[1]=0;
-    m_ulColumns[0]=m_ulColumns[0]=0;
+    m_ulColumns[0]=m_ulColumns[1]=0;
     m_pbsBody = NULL;
     m_fNewBody = TRUE;
     m_fNew = TRUE;
@@ -94,16 +93,6 @@ void Method::OpenScope()
     {
         psc->dwStart = m_pAssembler->m_CurPC;
         psc->pSuperScope = m_pCurrScope;
-#if(0)
-        LinePC *pLPC = new LinePC;
-        if(pLPC)
-        {
-            pLPC->Line = m_pAssembler->m_ulCurLine;
-            pLPC->Column = m_pAssembler->m_ulCurColumn;
-            pLPC->PC = m_pAssembler->m_CurPC;
-            m_LinePCList.PUSH(pLPC);
-        }
-#endif
         m_pCurrScope->SubScope.PUSH(psc);
         m_pCurrScope = psc;
     }
@@ -117,16 +106,6 @@ void Method::CloseScope()
         if((pVD = m_Locals.PEEK(pAN->dwAttr))) pVD->bInScope = FALSE;
     }
     m_pCurrScope->dwEnd = m_pAssembler->m_CurPC;
-#if(0)
-    LinePC *pLPC = new LinePC;
-    if(pLPC)
-    {
-        pLPC->Line = m_pAssembler->m_ulCurLine;
-        pLPC->Column = m_pAssembler->m_ulCurColumn;
-        pLPC->PC = m_pAssembler->m_CurPC;
-        m_LinePCList.PUSH(pLPC);
-    }
-#endif
     m_pCurrScope = m_pCurrScope->pSuperScope;
 }