Index: trunk/ab5.0/abdev/BasicCompiler_Common/Intermediate_Step2.cpp
===================================================================
--- trunk/ab5.0/abdev/BasicCompiler_Common/Intermediate_Step2.cpp	(revision 465)
+++ trunk/ab5.0/abdev/BasicCompiler_Common/Intermediate_Step2.cpp	(revision 543)
@@ -5,169 +5,4 @@
 #include "../BasicCompiler_Common/common.h"
 
-
-void AddConstEnum( const NamespaceScopes &namespaceScopes, char *buffer){
-	extern int cp;
-	int i=0,i2;
-
-	if(!(buffer[i]==1&&buffer[i+1]==ESC_ENUM)) return;
-	i+=2;
-
-	//列挙体の名前を取得
-	char temporary[VN_SIZE];
-	for(i2=0;;i++,i2++){
-		if(IsCommandDelimitation(buffer[i])){
-			temporary[i2]=0;
-			break;
-		}
-		if(!IsVariableChar(buffer[i])){
-			compiler.errorMessenger.Output(1,NULL,i);
-			break;
-		}
-		temporary[i2]=buffer[i];
-	}
-
-	if(buffer[i]=='\0'){
-		compiler.errorMessenger.Output(22,"Enum",cp);
-		return;
-	}
-
-	int NextValue=0;
-	while(1){
-		i++;
-
-		if(buffer[i]==1&&buffer[i+1]==ESC_ENDENUM) break;
-
-		for(i2=0;;i2++,i++){
-			if(IsCommandDelimitation(buffer[i])){
-				temporary[i2]=0;
-				break;
-			}
-			if(buffer[i]=='='){
-				temporary[i2]=0;
-				break;
-			}
-			temporary[i2]=buffer[i];
-		}
-		if(temporary[0]=='\0'){
-			if(buffer[i]=='\0'){
-				compiler.errorMessenger.Output(22,"Enum",cp);
-				break;
-			}
-			continue;
-		}
-
-		if(buffer[i]!='='){
-			NextValue++;
-		}
-		else{
-			char temp2[VN_SIZE];
-			for(i++,i2=0;;i2++,i++){
-				if(IsCommandDelimitation(buffer[i])){
-					temp2[i2]=0;
-					break;
-				}
-				temp2[i2]=buffer[i];
-			}
-
-			_int64 i64data;
-			StaticCalculation(true, temp2,DEF_LONG,&i64data,Type());
-			NextValue=(int)i64data;
-		}
-
-		//定数を追加
-		compiler.GetObjectModule().meta.GetGlobalConsts().Add( namespaceScopes, temporary, NextValue);
-	}
-}
-bool GetConstInfo(void){
-	////////////////////////////////////////////
-	// Const命令の情報を取得
-	////////////////////////////////////////////
-
-	int i2;
-	char temporary[1024];
-
-	// 名前空間管理
-	NamespaceScopes &namespaceScopes = compiler.GetNamespaceSupporter().GetLivingNamespaceScopes();
-	namespaceScopes.clear();
-
-	extern char *basbuf;
-	for(int i=0;;i++){
-		if( basbuf[i] == '\0' ) break;
-
-		if( basbuf[i] == 1 && basbuf[i+1] == ESC_NAMESPACE ){
-			for(i+=2,i2=0;;i2++,i++){
-				if( IsCommandDelimitation( basbuf[i] ) ){
-					temporary[i2]=0;
-					break;
-				}
-				temporary[i2]=basbuf[i];
-			}
-			namespaceScopes.push_back( temporary );
-
-			continue;
-		}
-		else if( basbuf[i] == 1 && basbuf[i+1] == ESC_ENDNAMESPACE ){
-			if( namespaceScopes.size() <= 0 ){
-				compiler.errorMessenger.Output(12, "End Namespace", i );
-			}
-			else{
-				namespaceScopes.pop_back();
-			}
-
-			i += 2;
-			continue;
-		}
-
-		if( basbuf[i] == 1 ){
-			if(basbuf[i]==1&&basbuf[i+1]==ESC_CONST){
-				i+=2;
-
-				extern int cp;
-				cp=i;	//エラー用
-
-
-				if(basbuf[i]==1&&basbuf[i+1]==ESC_ENUM){
-					AddConstEnum( namespaceScopes, basbuf+i);
-					continue;
-				}
-
-				for(i2=0;;i++,i2++){
-					if(basbuf[i]=='\"'){
-						temporary[i2]=basbuf[i];
-						for(i++,i2++;;i++,i2++){
-							temporary[i2]=basbuf[i];
-							if(basbuf[i]=='\"') break;
-						}
-						continue;
-					}
-					if(IsCommandDelimitation(basbuf[i])){
-						temporary[i2]=0;
-						break;
-					}
-					temporary[i2]=basbuf[i];
-				}
-				AddConst( namespaceScopes, temporary);
-				if(basbuf[i]=='\0') break;
-			}
-			else{
-				int result = JumpStatement( basbuf, i );
-				if( result == -1 ){
-					//エラー
-					return false;
-				}
-				else if( result == 1 ){
-					//ジャンプした場合
-					i--;
-				}
-			}
-		}
-	}
-
-	// イテレータを初期化
-	compiler.GetObjectModule().meta.GetGlobalConsts().Iterator_Init();
-	compiler.GetObjectModule().meta.GetGlobalConstMacros().Iterator_Init();
-
-	return true;
-}
 
 char ConstructorDestructorSchedule[MAX_PATH];
