Skip to content

Commit ae11989

Browse files
committed
- remove obsolete util stuff
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24922 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 61172b7 commit ae11989

File tree

5 files changed

+0
-407
lines changed

5 files changed

+0
-407
lines changed

Compiler/Util/AvlTreeString.mo

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,6 @@ algorithm
208208
end match;
209209
end createEmptyAvlIfNone;
210210

211-
protected function nodeValue "return the node value"
212-
input AvlTree bt;
213-
output AvlValue v;
214-
algorithm
215-
v := match(bt)
216-
case(NODE(value=SOME(VALUE(_,v)))) then v;
217-
end match;
218-
end nodeValue;
219-
220211
protected function balance "Balances a AvlTree"
221212
input AvlTree inBt;
222213
output AvlTree outBt;

Compiler/Util/Error.mo

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,21 +1162,6 @@ algorithm
11621162
end match;
11631163
end severityStr;
11641164

1165-
protected function selectString "author: adrpo, 2006-02-05
1166-
selects first string is bool is true otherwise the second string"
1167-
input Boolean inBoolean1;
1168-
input String inString2;
1169-
input String inString3;
1170-
output String outString;
1171-
algorithm
1172-
outString:=
1173-
match (inBoolean1,inString2,inString3)
1174-
local String s1,s2;
1175-
case (true,s1,_) then s1;
1176-
case (false,_,s2) then s2;
1177-
end match;
1178-
end selectString;
1179-
11801165
public function infoStr "
11811166
Converts an SourceInfo into a string ready to be used in error messages.
11821167
Format is [filename:line start:column start-line end:column end]"

Compiler/Util/Graph.mo

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -735,17 +735,6 @@ algorithm
735735
outElem := arrayGet(inArray,inIndex);
736736
end getArrayElem;
737737

738-
protected function cleanOptList
739-
input Option<list<Type_a>> inListOption;
740-
output list<Type_a> outList;
741-
replaceable type Type_a subtypeof Any;
742-
algorithm
743-
outList := match(inListOption)
744-
case (SOME(outList)) then outList;
745-
case (NONE()) then {};
746-
end match;
747-
end cleanOptList;
748-
749738
protected function arrayUpdateListAppend
750739
input Integer inIndex;
751740
input array<Option<list<NodeType>>> inArray;

Compiler/Util/GraphML.mo

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -633,28 +633,5 @@ algorithm
633633
print("node: "+id+" desc: "+Util.getOption(optDesc)+"\n\tatts: "+atts+"\n");
634634
end printNode;
635635

636-
protected function printGraph
637-
input Graph graph;
638-
protected
639-
String id;
640-
list<Integer> nodeIdc;
641-
algorithm
642-
GRAPH(id=id,nodeIdc=nodeIdc) := graph;
643-
print("graph: "+id+" nodeIdc: "+stringDelimitList(List.map(nodeIdc,intString),", ")+"\n");
644-
end printGraph;
645-
646-
protected function printAttribute
647-
input Attribute attr;
648-
protected
649-
Integer attIdx;
650-
String defaultValue;
651-
String name;
652-
AttributeType attType;
653-
AttributeTarget attTarget;
654-
algorithm
655-
ATTRIBUTE(attIdx=attIdx,name=name) := attr;
656-
print("attIdx: "+intString(attIdx)+" name: "+name+"\n");
657-
end printAttribute;
658-
659636
annotation(__OpenModelica_Interface="susan");
660637
end GraphML;

0 commit comments

Comments
 (0)