Skip to content

Commit 731b324

Browse files
committed
Remove parent track. Issue #100
1 parent 480f25b commit 731b324

File tree

3 files changed

+0
-42
lines changed

3 files changed

+0
-42
lines changed

src/com/github/miachm/sods/ChartRangeResolver.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ private static Sheet resolveSheet(Sheet chartSheet, String sheetName) {
4646
if (chartSheet != null && sheetName.equals(chartSheet.getName())) {
4747
return chartSheet;
4848
}
49-
if (chartSheet != null) {
50-
SpreadSheet parent = SheetRegistry.lookup(chartSheet);
51-
if (parent != null) {
52-
return parent.getSheet(sheetName);
53-
}
54-
}
5549
return null;
5650
}
5751

src/com/github/miachm/sods/SheetRegistry.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/com/github/miachm/sods/SpreadSheet.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,13 @@ public void addSheet(Sheet sheet,int pos) {
101101
throw new NullPointerException();
102102

103103
sheets.add(pos,sheet);
104-
SheetRegistry.register(this, sheet);
105104
}
106105

107106
/**
108107
* Remove all sheets of the book. This only remove the link, the sheets objects are not modified in any way.
109108
*/
110109
public void clear(){
111110
for (Sheet sheet : sheets) {
112-
SheetRegistry.unregister(sheet);
113111
}
114112
sheets.clear();
115113
}
@@ -123,7 +121,6 @@ public void clear(){
123121
public void deleteSheet(int pos) {
124122
Sheet removed = sheets.remove(pos);
125123
if (removed != null) {
126-
SheetRegistry.unregister(removed);
127124
}
128125
}
129126

@@ -140,7 +137,6 @@ public boolean deleteSheet(String name){
140137
Sheet sheet = sheets.get(i);
141138
if (sheet.getName().equals(name)) {
142139
sheets.remove(i);
143-
SheetRegistry.unregister(sheet);
144140
removed = true;
145141
}
146142
}
@@ -156,7 +152,6 @@ public boolean deleteSheet(String name){
156152
public boolean deleteSheet(Sheet sheet){
157153
boolean removed = sheets.remove(sheet);
158154
if (removed) {
159-
SheetRegistry.unregister(sheet);
160155
}
161156
return removed;
162157
}
@@ -220,9 +215,7 @@ public void setSheet(Sheet sheet, int pos)
220215
throw new NullPointerException();
221216
Sheet old = sheets.set(pos,sheet);
222217
if (old != null) {
223-
SheetRegistry.unregister(old);
224218
}
225-
SheetRegistry.register(this, sheet);
226219
}
227220

228221
/**

0 commit comments

Comments
 (0)