Remove abstract method Obj_Mimic

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/9a5dd08d
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/9a5dd08d
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/9a5dd08d

Branch: refs/heads/master
Commit: 9a5dd08d7546badd9d86d0e9f7b63c2541fe9516
Parents: 90e8a54
Author: Nick Wellnhofer <[email protected]>
Authored: Fri May 22 17:55:09 2015 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Wed May 27 16:01:12 2015 +0200

----------------------------------------------------------------------
 runtime/core/Clownfish/Obj.cfh        | 6 ------
 runtime/core/Clownfish/Test/TestObj.c | 8 +-------
 2 files changed, 1 insertion(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/9a5dd08d/runtime/core/Clownfish/Obj.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Obj.cfh b/runtime/core/Clownfish/Obj.cfh
index 64e9f00..d4d20ad 100644
--- a/runtime/core/Clownfish/Obj.cfh
+++ b/runtime/core/Clownfish/Obj.cfh
@@ -82,11 +82,5 @@ public abstract class Clownfish::Obj {
      */
     public incremented String*
     To_String(Obj *self);
-
-    /** Update the internal state of the object to mimic that of
-     * `other`.
-     */
-    public abstract void
-    Mimic(Obj *self, Obj *other);
 }
 

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/9a5dd08d/runtime/core/Clownfish/Test/TestObj.c
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Test/TestObj.c 
b/runtime/core/Clownfish/Test/TestObj.c
index 0a08c44..d763988 100644
--- a/runtime/core/Clownfish/Test/TestObj.c
+++ b/runtime/core/Clownfish/Test/TestObj.c
@@ -116,11 +116,6 @@ S_attempt_Compare_To(void *context) {
 }
 
 static void
-S_attempt_Mimic(void *context) {
-    Obj_Mimic((Obj*)context, (Obj*)context);
-}
-
-static void
 S_verify_abstract_error(TestBatchRunner *runner, Err_Attempt_t routine,
                         void *context, const char *name) {
     char message[100];
@@ -141,13 +136,12 @@ test_abstract_routines(TestBatchRunner *runner) {
     Obj *obj = S_new_testobj();
     S_verify_abstract_error(runner, S_attempt_Clone,      obj, "Clone");
     S_verify_abstract_error(runner, S_attempt_Compare_To, obj, "Compare_To");
-    S_verify_abstract_error(runner, S_attempt_Mimic,      obj, "Mimic");
     DECREF(obj);
 }
 
 void
 TestObj_Run_IMP(TestObj *self, TestBatchRunner *runner) {
-    TestBatchRunner_Plan(runner, (TestBatch*)self, 14);
+    TestBatchRunner_Plan(runner, (TestBatch*)self, 13);
     test_refcounts(runner);
     test_To_String(runner);
     test_Equals(runner);

Reply via email to