Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jan 26, 2017
1 parent 06fb1c2 commit 3b40c1c
Show file tree
Hide file tree
Showing 60 changed files with 8 additions and 101 deletions.
1 change: 0 additions & 1 deletion Compiler/BackEnd/BackendDAE.mo
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import HashTable3;
import HashTableCG;
import MMath;
import SCode;
import Values;
import ZeroCrossings;

public
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/BackendDAECreate.mo
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ protected import ClassInf;
protected import DAEDump;
protected import DAEUtil;
protected import Debug;
protected import DynamicOptimization;
protected import ElementSource;
protected import Error;
protected import Expression;
Expand Down
2 changes: 0 additions & 2 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,11 @@ import Matching;
import MetaModelica.Dangerous;
import RewriteRules;
import SCode;
import Sorting;
import SynchronousFeatures;
import Tearing;
import Types;
import Util;
import Values;
import ValuesUtil;

public function simplifyAllExpressions "author: lochel"
input BackendDAE.BackendDAE inDAE;
Expand Down
2 changes: 0 additions & 2 deletions Compiler/BackEnd/BackendDAETransform.mo
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ protected
import Flags;
import GC;
import List;
import SCode;
import Sorting;
import SymbolicJacobian;
import System;
import Util;
import Values;
import MetaModelica.Dangerous;

// =============================================================================
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/BackendDAEUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ import BackendVarTransform;
import BackendVariable;
import BinaryTree;
import Causalize;
import Ceval;
import CheckModel;
import ClassInf;
import ClockIndexes;
Expand Down
2 changes: 0 additions & 2 deletions Compiler/BackEnd/BackendDump.mo
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ import BackendDAEUtil;
import BackendEquation;
import BackendVariable;
import BaseHashSet;
import ClassInf;
import CodegenModelica;
import ComponentReference;
import DAEDump;
Expand All @@ -77,7 +76,6 @@ import Initialization;
import IOStream;
import List;
import Matching;
import SCode;
import System;
import Util;
import ZeroCrossings;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/BackendInline.mo
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public import BackendDAE;
public import DAE;
public import Inline;
public import SCode;
public import Values;

protected
import BackendVarTransform;
Expand Down
2 changes: 0 additions & 2 deletions Compiler/BackEnd/BackendVarTransform.mo
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ protected import Absyn;
protected import BaseHashTable;
protected import BaseHashSet;
protected import BackendEquation;
protected import BackendDAEUtil;
protected import BackendVariable;
protected import BackendDump;
protected import ClassInf;
protected import ComponentReference;
protected import DAEUtil;
Expand Down
6 changes: 0 additions & 6 deletions Compiler/BackEnd/CommonSubExpression.mo
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ import Array;
import BackendDAEUtil;
import BackendDump;
import BackendEquation;
import BackendDAEOptimize;
import BackendVarTransform;
import BackendVariable;
import BaseHashTable;
import ComponentReference;
import DAEDump;
import DAEUtil;
import Error;
import ExpandableArray;
import Expression;
import ExpressionDump;
Expand All @@ -61,12 +58,9 @@ import ExpressionSimplify;
import Global;
import HashTableExpToExp;
import HashTableExpToIndex;
import HpcOmEqSystems;
import HpcOmTaskGraph;
import List;
import Print;
import ResolveLoops;
import SynchronousFeatures;
import Types;

uniontype CSE_Equation
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/EvaluateParameter.mo
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ protected import Ceval;
protected import ComponentReference;
protected import ElementSource;
protected import Error;
protected import EvaluateFunctions;
protected import Expression;
protected import ExpressionDump;
protected import ExpressionSimplify;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/ExpressionSolve.mo
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ protected import Differentiate;
protected import ElementSource;
protected import Expression;
protected import ExpressionDump;
protected import BackendDump;
protected import ExpressionSimplify;
protected import Flags;
protected import List;
Expand Down
2 changes: 0 additions & 2 deletions Compiler/BackEnd/FindZeroCrossings.mo
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ encapsulated package FindZeroCrossings
import Absyn;
import BackendDAE;
import DAE;
import FCore;

protected
import BackendDAEOptimize;
import BackendDAEUtil;
import BackendDump;
import BackendEquation;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/HpcOmEqSystems.mo
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ protected import ExpressionSimplify;
protected import ExpressionSolve;
protected import ExpressionDump;
protected import Flags;
protected import GraphML;
protected import HpcOmSimCodeMain;
protected import HpcOmScheduler;
protected import IndexReduction;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/HpcOmScheduler.mo
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public import SimCode;
public import SimCodeVar;

protected
import Absyn;
import Array;
import BackendDAEUtil;
import BackendVarTransform;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/HpcOmTaskGraph.mo
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ protected import Error;
protected import Expression;
protected import Flags;
protected import HpcOmBenchmark;
protected import HpcOmEqSystems;
protected import HpcOmScheduler;
protected import List;
protected import SimCodeUtil;
Expand Down
4 changes: 0 additions & 4 deletions Compiler/BackEnd/IndexReduction.mo
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ protected import BackendDAEEXT;
protected import BackendDump;
protected import BackendEquation;
protected import BackendInline;
protected import BackendDAETransform;
protected import BackendDAEUtil;
protected import BackendVariable;
protected import BackendVarTransform;
Expand All @@ -60,7 +59,6 @@ protected import ErrorExt;
protected import Expression;
protected import ExpressionDump;
protected import ExpressionSimplify;
protected import FCore;
protected import Flags;
protected import HashTable2;
protected import HashTable3;
Expand All @@ -74,8 +72,6 @@ protected import SCode;
protected import Sorting;
protected import System;
protected import Util;
protected import Values;
protected import ValuesUtil;


// =============================================================================
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/Initialization.mo
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import Absyn;
import BackendDAE;
import BackendDAEFunc;
import DAE;
import FCore;
import HashSet;
import Util;

Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/OnRelaxation.mo
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ protected import DumpGraphML;
protected import Expression;
protected import ExpressionDump;
protected import ExpressionSimplify;
protected import Flags;
protected import HashSet;
protected import HashTable4;
protected import List;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/OpenTURNS.mo
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public
import Absyn;
import BackendDAE;
import DAE;
import FCore;

protected
import Array;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/ResolveLoops.mo
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ protected import ExpressionSimplify;
protected import ExpressionSolve;
protected import ExpressionDump;
protected import Flags;
protected import HpcOmEqSystems;
protected import HpcOmTaskGraph;
protected import List;
protected import Util;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/StateMachineFeatures.mo
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ protected import HashTableSM;
protected import Array;
protected import PrefixUtil;
protected import ExpressionDump;
protected import ValuesUtil;
protected import DAEDump;
protected import HashTableExpToIndexExp;
protected import MathematicaDump;
Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/Tearing.mo
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ protected import BackendVariable;
protected import Config;
protected import DoubleEndedList;
protected import DumpGraphML;
protected import ElementSource;
protected import Error;
protected import ExecStat.execStat;
protected import Expression;
Expand Down
4 changes: 2 additions & 2 deletions Compiler/BackEnd/Unit.mo
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ encapsulated package Unit

public
import DAE;
import HashTableStringToUnit;
import HashTableUnitToString;
import System;

protected
import ComponentReference;
import Error;
import HashTableStringToUnit;
import HashTableUnitToString;
import Util;


Expand Down
1 change: 0 additions & 1 deletion Compiler/BackEnd/XMLDump.mo
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ protected import Print;
protected import Util;
protected import Types;
protected import DAEDump;
protected import ValuesUtil;
protected import ClassInf;
protected import System; // for stringReplace
import ZeroCrossings;
Expand Down
1 change: 0 additions & 1 deletion Compiler/FFrontEnd/FGraphDump.mo
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ type Types = list<DAE.Type>;

protected
import Flags;
import List;
import Dump;
import Absyn;
import Util;
Expand Down
7 changes: 0 additions & 7 deletions Compiler/FrontEnd/Builtin.mo
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ encapsulated package Builtin

import Absyn;
import DAE;
import Error;
import SCode;
import FCore;
import FGraph;
Expand All @@ -54,12 +53,6 @@ import FBuiltin;
import Flags;
import FGraphBuildEnv;
import Global;
import List;
import MetaUtil;
import Parser;
import SCodeUtil;
import Settings;
import System;
import Util;

public function variableIsBuiltin
Expand Down
2 changes: 0 additions & 2 deletions Compiler/FrontEnd/Ceval.mo
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public import Lookup;

// protected imports
protected import BackendInterface;
protected import BaseHashTable;
protected import ComponentReference;
protected import Config;
protected import Debug;
Expand All @@ -73,7 +72,6 @@ protected import Expression;
protected import ExpressionDump;
protected import ExpressionSimplify;
protected import Flags;
protected import HashTable;
protected import InstBinding;
protected import InstUtil;
protected import List;
Expand Down
1 change: 0 additions & 1 deletion Compiler/FrontEnd/CheckModel.mo
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public import DAE;

protected import BaseHashSet;
protected import ClassInf;
protected import ConnectUtil;
protected import ComponentReference;
protected import DAEDump;
protected import DAEUtil;
Expand Down
2 changes: 0 additions & 2 deletions Compiler/FrontEnd/Inst.mo
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ import ValuesUtil;
import System;
import SCodeDump;
import UnitAbsynBuilder;
import NFSCodeFlattenRedeclare;
import InstStateMachineUtil;
import HashTableSM1;
import NFUnitCheck;

import DAEDump; // BTH
Expand Down
2 changes: 0 additions & 2 deletions Compiler/FrontEnd/InstExtends.mo
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ public import Prefix;

// protected imports
protected import AvlSetString;
protected import ComponentReference;
protected import Debug;
protected import Dump;
protected import Error;
protected import Flags;
protected import FGraph;
protected import FNode;
protected import Inst;
protected import InstUtil;
protected import List;
Expand Down
1 change: 0 additions & 1 deletion Compiler/FrontEnd/InstFunction.mo
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public import UnitAbsyn;

protected import Lookup;
protected import Inst;
import DAEDump;
protected import InstUtil;
protected import UnitAbsynBuilder;
protected import ElementSource;
Expand Down
1 change: 0 additions & 1 deletion Compiler/FrontEnd/InstUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ import Dump;
import Config;
import Inst;
import InstFunction;
import InstSection;
import System;
import ErrorExt;
import InstExtends;
Expand Down
1 change: 0 additions & 1 deletion Compiler/FrontEnd/MetaUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ protected

import Config;
import Error;
import FGraph;
import Flags;
import List;
import MetaModelica.Dangerous;
Expand Down
1 change: 0 additions & 1 deletion Compiler/FrontEnd/NFSCodeFlatten.mo
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ protected import NFEnvExtends;
protected import Flags;
protected import List;
protected import System;
protected import NFSCodeLookup;

public type Env = NFSCodeEnv.Env;

Expand Down
1 change: 0 additions & 1 deletion Compiler/FrontEnd/Patternm.mo
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ import InstUtil;
import List;
import Lookup;
import MetaModelica.Dangerous;
import MetaUtil;
import SCodeUtil;
import Static;
import System;
Expand Down
1 change: 0 additions & 1 deletion Compiler/FrontEnd/StateMachineFlatten.mo
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public import DAE;
public import FCore;

protected import List;
protected import InstStateMachineUtil;
protected import ComponentReference;
protected import ExpressionDump;
protected import DAEUtil;
Expand Down
1 change: 0 additions & 1 deletion Compiler/NFFrontEnd/NFBinding.mo
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public

protected
import Dump;
import ExpressionDump;
import Binding = NFBinding;

public
Expand Down

0 comments on commit 3b40c1c

Please sign in to comment.