         self.init(RLMRealm.inMemoryRealmWithIdentifier(inMemoryIdentifier))
     }
 
-    // MARK: Writing a Copy
-
-    /**
-    Write an encrypted and compacted copy of the Realm to the given path.
-
-    The destination file cannot already exist.
-
-    Note that if this is called from within a write transaction it writes the
-    *current* data, and not data when the last write transaction was committed.
-
-    :param: path          Path to save the Realm to.
-    :param: encryptionKey Optional 64-byte encryption key to encrypt the new file with.
-    :returns:             If an error occurs, returns an `NSError` object, otherwise `nil`.
-
-    :returns: Whether the realm was copied successfully.
-    */
-    public func writeCopyToPath(path: String, encryptionKey: NSData? = nil) -> NSError? {
-        var error: NSError?
-        if let encryptionKey = encryptionKey {
-            rlmRealm.writeCopyToPath(path, encryptionKey: encryptionKey, error: &error)
-        }
-        else {
-            rlmRealm.writeCopyToPath(path, error: &error)
-        }
-        return error
-    }
-
     // MARK: Transactions
 
     /**

    public func cancelWrite() {
        rlmRealm.cancelWriteTransaction()
    }

    // MARK: Autorefresh and Refresh


        rlmRealm.invalidate()
    }

    // MARK: Writing a Copy

    /**
    Write an encrypted and compacted copy of the Realm to the given path.

    The destination file cannot already exist.

    Note that if this is called from within a write transaction it writes the
    *current* data, and not data when the last write transaction was committed.

    :param: path          Path to save the Realm to.
    :param: encryptionKey Optional 64-byte encryption key to encrypt the new file with.
    :returns:             If an error occurs, returns an `NSError` object, otherwise `nil`.

    :returns: Whether the realm was copied successfully.
    */
    public func writeCopyToPath(path: String, encryptionKey: NSData? = nil) -> NSError? {
        var error: NSError?
        if let encryptionKey = encryptionKey {
            rlmRealm.writeCopyToPath(path, encryptionKey: encryptionKey, error: &error)
        }
        else {
            rlmRealm.writeCopyToPath(path, error: &error)
        }
        return error
    }

    // MARK: Encryption

    /**
    Set the encryption key to use when opening Realms at a certain path.

