Collapse the synchronized and declared synchronized predicates into one.

Change-Id: I789a31a8e19826111b347e9983e79a4bda8199aa
diff --git a/src/object.h b/src/object.h
index e8d1ee1..89ccf49 100644
--- a/src/object.h
+++ b/src/object.h
@@ -279,14 +279,10 @@
     return (access_flags_ & kAccStatic) != 0;
   }
 
-  // Returns true if the method is declared native and synchronized.
+  // Returns true if the method is declared synchronized.
   bool IsSynchronized() {
-    return (access_flags_ & kAccSynchronized) != 0;
-  }
-
-  // Returns true if the method is not native and declared synchronized.
-  bool IsDeclaredSynchronized() {
-    return (access_flags_ & kAccDeclaredSynchronized) != 0;
+    uint32_t synchonized = kAccSynchronized | kAccDeclaredSynchronized;
+    return (access_flags_ & synchonized) != 0;
   }
 
   // Returns true if the method is declared final.