Removed isRelation function

This commit is contained in:
Alexander Huddleston 2015-09-24 12:42:08 -05:00
parent 5f953400e2
commit c2cb81d31d

View file

@ -28,15 +28,6 @@ vector<Relation> DBEngine::getRelations(){
return tables; return tables;
} }
//To check if a relation name is already used.
bool DBEngine::isRelation(string n){
for(int i = 0; i < tables.size(); i++){
if (tables[i].getTableName() == n){
return true;
}
}
return false;
}
Relation& DBEngine::getTableFromName(string n){ Relation& DBEngine::getTableFromName(string n){
for(int i = 0; i < tables.size(); i++){ for(int i = 0; i < tables.size(); i++){