removing unnecessary/dead code

Change-Id: I46d5b5fbee97b6895fb4f1b61627fda6f8568256
This commit is contained in:
Michael Jurka
2011-08-11 16:53:35 -07:00
parent c57b7a8233
commit 08ee77090f
4 changed files with 5 additions and 323 deletions
+3 -31
View File
@@ -390,7 +390,9 @@ public class Workspace extends SmoothPagedView
return SmoothPagedView.X_LARGE_MODE;
}
private void onAddView(View child) {
@Override
protected void onViewAdded(View child) {
super.onViewAdded(child);
if (!(child instanceof CellLayout)) {
throw new IllegalArgumentException("A Workspace can only have CellLayout children.");
}
@@ -400,36 +402,6 @@ public class Workspace extends SmoothPagedView
cl.enableHardwareLayers();
}
@Override
public void addView(View child, int index, LayoutParams params) {
onAddView(child);
super.addView(child, index, params);
}
@Override
public void addView(View child) {
onAddView(child);
super.addView(child);
}
@Override
public void addView(View child, int index) {
onAddView(child);
super.addView(child, index);
}
@Override
public void addView(View child, int width, int height) {
onAddView(child);
super.addView(child, width, height);
}
@Override
public void addView(View child, LayoutParams params) {
onAddView(child);
super.addView(child, params);
}
/**
* @return The open folder on the current screen, or null if there is none
*/