Merge "removing unnecessary/dead code"

This commit is contained in:
Michael Jurka
2011-08-11 16:58:32 -07:00
committed by Android (Google) Code Review
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
*/