summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-02-18 18:48:08 -0800
committerXavier Ducrohet <xav@android.com>2011-02-18 18:48:08 -0800
commit1ca584a2bb5c0f0e747c98f2e930cce8b53421a5 (patch)
tree70bd2fb29071d83d96201b761e7b4cf8afc68dcf /tools/layoutlib
parent82314c013fbd94fdbad6a8f9687a6204c7966e12 (diff)
downloadframeworks_base-1ca584a2bb5c0f0e747c98f2e930cce8b53421a5.zip
frameworks_base-1ca584a2bb5c0f0e747c98f2e930cce8b53421a5.tar.gz
frameworks_base-1ca584a2bb5c0f0e747c98f2e930cce8b53421a5.tar.bz2
LayoutLib: remove assert in resource resolution.
These code paths were valid in case there's a mismatch between the style/theme/version of Android Change-Id: I8cb3b2a3f3a1ef5c37ccec0c8ddbb7add69bfbe0
Diffstat (limited to 'tools/layoutlib')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeTypedArray.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeTypedArray.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeTypedArray.java
index 99c217d..c1d7600 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeTypedArray.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeTypedArray.java
@@ -345,8 +345,6 @@ public final class BridgeTypedArray extends TypedArray {
Bridge.getLog().error(LayoutLog.TAG_RESOURCES_FORMAT, e.getMessage(), e, null /*data*/);
}
- assert false;
-
return null;
}
@@ -430,8 +428,6 @@ public final class BridgeTypedArray extends TypedArray {
"\"%1$s\" in attribute \"%2$s\" is not a valid format.",
s, mNames[index]), null /*data*/);
- assert false;
-
return defValue;
}
@@ -569,8 +565,6 @@ public final class BridgeTypedArray extends TypedArray {
"\"%1$s\" in attribute \"%2$s\" cannont be converted to a fraction.",
value, mNames[index]), null /*data*/);
- assert false;
-
return defValue;
}
@@ -686,8 +680,6 @@ public final class BridgeTypedArray extends TypedArray {
"Unable to resolve id \"%1$s\" for attribute \"%2$s\"", value, mNames[index]),
resValue);
- assert false;
-
return defValue;
}